Создайте подкласс UITableViewCell с XIb файл, а затем загрузить Cell на свой Tableview,
- (void)viewDidLoad {
[super viewDidLoad];
UINib* nib = [UINib nibWithNibName:@"YourTableViewCellName" bundle:nil];
[self.tableView registerNib:nib forCellReuseIdentifier:@"Cell"];
}
, а затем в вашем методе cellForRowAtIndexPath,
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
YourTableViewCellName *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
return cell;
}
надеюсь, это поможет вы.
Вы пробовали что-то вроде этого? [self.tableView registerNib: @ "MyTableViewCell" forCellReuseIdentifier: @ "my_cell"]; –