当前位置: 代码迷 >> Iphone >> 有关tableview的有关问题
  详细解决方案

有关tableview的有关问题

热度:15   发布时间:2016-04-25 06:23:15.0
有关tableview的问题
新建一个tableviewcontroller后都会自动生成一些函数,请问这个函数(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath是什么时候执行的,viewdidload函数执行了,可是这个没有执行,是什么原因呢?

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