Do not really codil 1.5 months. I stupid strongly :).
In general the question: There are tabs (custom buttons at the top). Below them is the containerView -> pageViewController -> TableViewController (OrdersTableViewController, empty). 5 custom cells for each tab. He made cells on a table controller (OrdersTableViewController) and assigned a unique identifier to each. Inherited 5 classes from the table controller (OrdersTableViewController). Overrides delegate and datasource methods in each class. In pageViewController I create objects of these classes (I register a cell with a specific identifier). Inherited tables are empty: (
What am I doing wrong? and in general, how to? I can not understand how it should work :) From an architectural point of view correctly, maybe something is wrong with the cells ?. Can not see the cell?
Inherited class from OrdersTableViewController (there are 5 custom cells on OrdersTableViewController)
#import "OpenOrders.h" #import "OpenOrderCell.h" #define OPENTASKCELL @"openTasksCell" @implementation OpenOrders - (void)viewDidLoad { [super viewDidLoad]; self.tableView.estimatedRowHeight = 44.0; [self.tableView registerClass:[OpenOrderCell class] forCellReuseIdentifier:OPENTASKCELL]; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 10; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { OpenOrderCell *cell = (OpenOrderCell *)[tableView dequeueReusableCellWithIdentifier:OPENTASKCELL forIndexPath:indexPath]; if (cell == nil) { cell = [OpenOrderCell new]; } cell.type.text = @"sjdgshdg"; return cell; } - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath { return UITableViewAutomaticDimension; } @end