I want to create an layout in that i want to put UITableView(SubTableView) inside UITableViewCell of the first UITableView(MainTableView)
. The problem which I am facing is that when I call the Data Source method of MainTableView, then all the DataSource Method are initialised but when cellForRowAtIndexPath method is executed then my SubTableView in not calling it's DataSource Method for particular row of the MainTableView. Instead what it dose is that it calls the DataSource Method of MainTableView and then it calls the DataSource Method for the SubTableView. My concern is that I want to call DataSource Method for SubTableView when cellForRowAtIndexPath method is executed for the MainTableView for particular row.