码迷,mamicode.com
首页 >  
搜索关键字:tableview    ( 2243个结果
UITableView使用笔记
UITableViewDataSource协议@property (nonatomic, assign) id dataSource;// 一共有多少组数据- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;// 每一....
分类:其他好文   时间:2015-03-15 12:19:50    阅读次数:104
UITableViewCell-02
// 单行插入刷新,效率高 NSIndexPath *path = [NSIndexPath indexPathForRow:(self.tgs.count - 1) inSection:0]; [self.tableView insertRowsAtIndexPaths:@[path]...
分类:其他好文   时间:2015-03-14 15:14:27    阅读次数:113
UITableViewCell-01
UITableViewCell1)当所有的cell的高度都一样的时候 使用:tableView.rowHeight,这样效率高。2)当cell的高度不一样时 使用:- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexP.....
分类:其他好文   时间:2015-03-13 12:35:53    阅读次数:104
下拉刷新
// 1.添加下拉刷新控件 UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [self.tableView addSubview:refreshControl]; // 2.监听...
分类:其他好文   时间:2015-03-13 09:19:38    阅读次数:123
UITableView三部曲
step1: 确定有多少组 -?(NSInteger)numberOfSectionsInTableView:(UITableView?*)tableView?{ ????return?0; } step2: 确定有多少行,一般采用数组的数量 -?(NSInteger)tableView:(UITableView?*)table...
分类:其他好文   时间:2015-03-11 17:32:47    阅读次数:175
UITableView隐藏多佘部分方法
UITableView *tableView = [[UITableView alloc]initWithFrame:self.view.bounds style:UITableViewStylePlain]; ? ? tableView.delegate = self; ? ? tableView.dataSource = self; ? ? tableView.sepa...
分类:其他好文   时间:2015-03-11 11:01:22    阅读次数:106
iOS开发UI篇—UITableviewcell的性能优化和缓存机制
iOS开发UI篇—UITableviewcell的性能问题一、UITableviewcell的一些介绍UITableView的每一行都是一个UITableViewCell,通过dataSource的 tableView:cellForRowAtIndexPath:方法来初始化每?行UITableVi...
分类:移动开发   时间:2015-03-10 11:52:33    阅读次数:201
iOS 通知观察者的被调函数不一定运行在主线程
TonyiniOS |08/08/2013iOS 通知观察者的被调函数不一定运行在主线程今天修复Bug时候发现的一个小细节,记录下。问题描述事情是这样的:我在A视图(UITableView)注册了一个通知,当接收到此通知时,就重新读取数据并调用[tableView reloadData]。但是视图有...
分类:移动开发   时间:2015-03-10 00:05:03    阅读次数:283
iOS TableViewCell 加载时的动画
//设置cell的显示动画     func tableView(tableView: UITableView!, willDisplayCell cell:UITableViewCell!, forRowAtIndexPath indexPath: NSIndexPath!){         //设置cell的显示动画为3D缩放         //xy方向缩放的初始值...
分类:移动开发   时间:2015-03-09 09:25:01    阅读次数:206
iOS8下UITableView的contentsize自动变化问题
遇到一个问题,一个页面中有一个UITableView,在iOS8中点击里面的图片或者链接push到下一个页面再返回时,TableView的底部就被遮盖在屏幕底部了,只有滑动到底部的瞬间能看到。而iOS7的系统上就无...
分类:移动开发   时间:2015-03-07 18:48:57    阅读次数:2824
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!