自动调用我UITableView
实施UIRefreshControl
与valueChange
事件。 当我把它拉下来时,它会自动呼叫cellForRowAtIndex
,而不需要拨打numberOfRowsInSection
。 即使我不是叫tableView.reload()
cellForRowAtIndex上UIRefreshControl
0
A
回答
4
它,因为当你拉下来一些的tableview 底部细胞都隐藏,当你释放它的隐藏单元格再次显示使这些细胞的tableview必须调用cellForRowAtIndex该单元。测试你可以在NSLog的indexpath.row
0
萨米特,
在UIRefresh控制,你必须向下滚动您的表视图细胞。在这种情况下,底部的细胞就会隐藏起来。
正如你也知道,我们的表视图具有可重复使用的单元格属性。这会导致移除以及添加单元格。
这就是为什么当表向下滚动,少数细胞隐藏,然后表视图的可重复使用的特性删除单元格。
就是这个原因,cellForRowAtIndex自动调用。
相关问题
- 1. UIRefreshControl“上拉”刷新?
- 2. UIRefreshControl上拉刷新?
- 3. 与UIRefreshControl
- 4. UIRefreshControl EXC_BAD_ACCESS
- 5. 未调用CellForRowAtIndex方法
- 6. cellForRowAtIndex路径未被调用
- 7. cellForRowAtIndex自定义方法
- 8. UIRefreshControl拉长度
- 9. UIRefreshControl在景观
- 10. UIRefreshControl滞后
- 11. UITableView和UIRefreshControl
- 12. UIRefreshControl问题
- 13. UIRefreshControl在viewDidLoad中
- 14. UIRefreshControl奇怪
- 15. iOS - UIRefreshControl崩溃
- 16. 抵消UIRefreshControl
- 17. Swift Firebase UIRefreshControl
- 18. UIRefreshControl反弹
- 19. UIViewController中的UIRefreshControl
- 20. UIRefreshControl apile in duplicate
- 21. UIRefreshControl在UITableView/UICollectionView上的大小错误
- 22. UIRefreshControl显示上述UICollectionViews细胞
- 23. 执行水平UIRefreshControl
- 24. UIRefreshControl不起作用
- 25. 用UIImageView替换UIRefreshControl
- 26. 如何“隐藏”UIRefreshControl?
- 27. UIRefreshControl自动启动
- 28. UIRefreshControl闪烁在iOS7
- 29. UIRefreshControl样式 - Swift iOS7 +
- 30. UIRefreshControl在TableView下方