有关tableview的问题
新建一个tableviewcontroller后都会自动生成一些函数,请问这个函数(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath是什么时候执行的,viewdidload函数执行了,可是这个没有执行,是什么原因呢?
[解决办法]
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section这个方法返回0的时候,你说的那个方法有可能不执行