您的位置:首页 > 其它

静静的开始,彷徨地结束

2014-11-05 00:00 134 查看



UITabelView的妙用

将某一row移动到顶端/中部/底部
在tabelView上添加手势的时候就会把cell的代理方法中的  didSeclected给抵消掉,导致不会能响应选择cell的情况

//局部section刷新
NSIndexSet * nd=[[NSIndexSet alloc]initWithIndex:1];//刷新第二个section
[tview reloadSections:nd withRowAnimation:UITableViewRowAnimationAutomatic];
//局部cell刷新  www.2cto.com
NSIndexPath *te=[NSIndexPath indexPathForRow:2 inSection:0];//刷新第一个section的第二行
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:te,nil] withRowAnimation:UITableViewRowAnimationMiddle];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: