我目前正在開發一個基於標籤欄的應用程序,每個標籤都有一個UITableView。每個選項卡都鏈接到一個普通的UIViewController,前兩個是xCode默認創建的,另外兩個是我創建的。 如果我試圖將一個表視圖添加到前兩個視圖控制器(默認的)一切工作順利,但是當我做同樣的與其他的應用程序崩潰,告訴我說:每個標籤中的UITableView
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x4e2f6f0'
和的tableView :numberOfRowsInSection:在我的.m文件是這樣的:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 2;
}
你現在任何解決方案?我環顧四周沒有結果
在此先感謝您的答案
只有1節 – 2011-05-08 13:49:13