什么时候是tableView:numberOfRowsInSection:在UITableView中调用? [英] When is tableView:numberOfRowsInSection: called in UITableView?

查看:140
本文介绍了什么时候是tableView:numberOfRowsInSection:在UITableView中调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tableView:numberOfRowsInSection 被发送到UITableView的委托,以找出它在给定部分中需要有多少行。

tableView:numberOfRowsInSection is sent to the delegate of a UITableView to find out how many rows it needs to have in a given section.

我的问题是,此方法的调用时间和频率是多少?

My question is, when and how often is this method called?

推荐答案

在第一次加载tableview时调用该方法,如果你对代理更感兴趣,那么就放一个断点并检查调用哪个代表的时间和地点以及多少次。

The method is called very first time the tableview is getting loaded and if you are more interested in the delegates then put a breakpoint and check when and where which delegate is called and how many times.

这篇关于什么时候是tableView:numberOfRowsInSection:在UITableView中调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆