UITableView控件didSelectRow和didDeselectRow方法注意事项
2016-02-09 10:55
573 查看
UITableView控件didSelectRow和didDeselectRow方法注意事项
1. 因Xcode强大的自动补全功能,在使用UITableView如下两个方法时,务必特别小心,避免出错:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath;
2. 在学习iOS网络知识时,练习“小黄人”Demo时,不小心错用了以上两个方法,困扰自己好久:
1. 因Xcode强大的自动补全功能,在使用UITableView如下两个方法时,务必特别小心,避免出错:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath;
2. 在学习iOS网络知识时,练习“小黄人”Demo时,不小心错用了以上两个方法,困扰自己好久:
相关文章推荐
- 1007. Maximum Subsequence Sum (25)
- STL 整理(map、set、vector、list、stack、queue、deque、priority_queue)
- Ubuntu 14.04LTS Gnome GUI初体验及163更新源配制
- PriorityQueue源码及用法
- UE4使用Visual Studio编译配置详解
- UITableViewCell优化的几点注意
- SpeedTree - 导入模型到UE4
- poj 3368 Frequent values(RMQ)
- 【BZOJ1367】sequence
- UIDynamic物理引擎
- LeetCode 48. Rotate Image My Submissions Question (矩阵旋转)
- HDU 3397 Sequence operation(线段树)
- CQRS, Task Based UIs, Event Sourcing agh!
- 在Qt中如何使用QtDesigner创建的UI文件
- Qt中Ui名字空间以及setupUi函数的原理和实现
- volley中多级别取消请求Request
- break和continue跳出指定for循环(for一些特点)
- continue break return的区别
- Codeforces Round #342 (Div. 2) A - Guest From the Past 数学
- continue break return的区别