
UITableView
xyxdasnjss
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ios UISwitch in a UITableView cell
文章来源:http://stackoverflow.com/questions/3770019/uiswitch-in-a-uitableview-cell Setting it as the accessoryView is usually the way to go. You can set it up intableView:cellForRowAtIndexPath: You...原创 2012-05-16 14:20:21 · 110 阅读 · 0 评论 -
ios UITableView Demo
分享一下 UITableView的小Demo, 大牛们不要笑话呀,哈哈,如果有不足,或者错误请多多指点呀~~嘻嘻,,,原创 2012-05-17 17:44:54 · 128 阅读 · 0 评论 -
优化UITableView性能
在iOS应用中,UITableView应该是使用率最高的视图之一了。iPod、时钟、日历、备忘录、Mail、天气、照片、电话、短信、Safari、App Store、iTunes、Game Center⋯几乎所有自带的应用中都能看到它的身影,可见它的重要性。然而在使用第三方应用时,却经常遇到性能上的问题,普遍表现在滚动时比较卡,特别是table cell中包含图片的情况时。实际上只要针对性地优化一...原创 2012-10-31 11:56:17 · 105 阅读 · 0 评论 -
UITableView小片段,小总结
1. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 方法要比 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *...原创 2013-04-01 13:23:07 · 130 阅读 · 0 评论 -
自定义UITableView的Header
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { // create the parent view that will hold header Label UIView* customView = [[UIView...原创 2012-08-28 19:13:05 · 137 阅读 · 0 评论 -
UITableView小结
UITableViewDataSource #pragma mark - UITableViewDataSource //一共有多少组(可以不写,默认为1组) - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } //每个组有多少数据 - (NSInte...原创 2013-06-18 10:03:40 · 140 阅读 · 0 评论 -
自定义UITableViewCell上的delete按钮
//通过UITableViewDelegate方法可以实现删除 tableview中某一行 //滑动删除 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPa...原创 2013-06-28 10:35:13 · 116 阅读 · 0 评论 -
UITableView 只更新某行
如果全部更新的话 用reloadData方法 如果只是更新某几行数据的时候, NSIndexPath *indexPath_1 = [NSIndexPath indexPathForRow:0 inSection:1]; NSArray *indexArray = [NSArray arrayWithObject:indexPath_1]; [self.m...原创 2013-07-22 10:10:57 · 154 阅读 · 0 评论 -
UITableView 隐藏多余的Cell的分割线
- (void)setExtraCellLineHidden: (UITableView *)tableView { UIView *view = [UIView new]; view.backgroundColor = [UIColor clearColor]; [tableView setTableFooterView:view]; }原创 2015-02-02 14:39:22 · 155 阅读 · 0 评论