读书人

有关tableview的有关问题

发布时间: 2012-09-11 10:49:03 作者: rapoo

有关tableview的问题
新建一个tableviewcontroller后都会自动生成一些函数,请问这个函数(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath是什么时候执行的,viewdidload函数执行了,可是这个没有执行,是什么原因呢?

[解决办法]
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section这个方法返回0的时候,你说的那个方法有可能不执行

读书人网 >Iphone

热点推荐