我已经找到同样的问题,但答案并没有帮助我:( 也许是因为我有具体问题。 安装应用程序到iPhone 4S(iOS 5)后出现一些问题。已经修复他们夫妇,但是这一个比较顽固的,似乎一见钟情cellForRowAtIndexPath not called(again)
我Xcode4打开现有Xcode3项目,这个问题出现
我会在这里把一些代码:。
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Return the number of rows in the section.
return [self.townShopsArray count];
}
我检查:self.townShopsArray不为空
功能:
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ...
不叫,所以我不需要在这里把它的代码。
任何人都可以告诉我,当我从Xcode 3升级项目到Xcode 4时会出现什么问题?
你加的tableView委托和数据源?在引用网点文件的所有者 : - 鉴于网点节 : – Neo
当我打开的.xib文件,并选择tableview中,然后用鼠标右键点击它,我可以看到这个 - : - 数据源委托文件,主人 :文件的所有者 这是否意味着tableView的委托和数据源被正确设置? – dejan