2016-11-27 7 views
0

私はストーリーボードでのプロトタイプ細胞にこれらのコントローラのそれぞれをフックしようとすると、私のアプリでは、私は、しかし、三つの異なるUITableViewControllersカスタムUITableViewCells

AllUsersTableViewController * child_1 = [[AllUsersTableViewController alloc] initWithStyle:UITableViewStylePlain]; 
NearMeTableViewController * child_2 = [[NearMeTableViewController alloc] init]; 
ByInterestTableViewController * child_3 = [[ByInterestTableViewController alloc] initWithStyle:UITableViewStylePlain]; 

間にタブ/スワイプでビューを設定してい私はプロトタイプが登録されていないと信じています:

unable to dequeue a cell with identifier AllUserCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard 

私はストーリーボードに適切に識別子を割り当てましたが、誰か助けてくれますか?

+0

ののviewDidLoadで

[self.tableView registerClass:class forCellReuseIdentifier:@"identefier"] 

を呼び出します。 – SJ3040

答えて

0

ちょうどあなたがそのセルのクラスを設定するのを忘れている場合がありますあなたのコントローラ

関連する問題