随笔分类 -  UITableView

用xib自定义UITableViewCell的注意事项——重用问题
摘要:问题的提出:有时候我们经常需要自定义tableView的cell,当cell里面的布局较为复杂时往往舍弃纯代码的方式而改用xib的方式进行自定义。当我们用纯代码的方式布局cell时,往往会在cell的initWithStyle: reuseIdentifier: 方法里面用纯代码进行布局,然后在外部... 阅读全文

posted @ 2014-12-11 14:39 三十一 阅读(1942) 评论(0) 推荐(0)

UITableView刷新单个cell或者单个Section
摘要://一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAut... 阅读全文

posted @ 2014-11-05 17:38 三十一 阅读(502) 评论(1) 推荐(0)

导航