码迷,mamicode.com
首页 >  
搜索关键字:sizeforitemat indexpath    ( 243个结果
图片无限轮播-最简单的实现方法
collectionView中只有三个cell 每次显示的都是第二个cell - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {          CycleViewCell *ce...
分类:其他好文   时间:2015-07-24 14:26:35    阅读次数:123
TableView的删除操作
-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ i.....
分类:其他好文   时间:2015-07-21 21:49:40    阅读次数:75
iOS8 用UITableViewRowAction实现Cell自定义滑动操作
-?(BOOL)tableView:(UITableView?*)tableView?canEditRowAtIndexPath:(NSIndexPath?*)indexPath {????return?YES; } -?(UITableViewCellEditingStyle)tableView:(UITableView?*)tableView?editingSt...
分类:移动开发   时间:2015-07-21 17:29:15    阅读次数:786
UITableviewCell滑动出现多级的控制按钮 - UITableViewRowAction
滑动出现类似iPhone短信出现按钮的效果不啰嗦了 上代码关键方法如下- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ return YES;}- (UITabl...
分类:其他好文   时间:2015-07-21 14:35:32    阅读次数:295
关于UITableView的性能优化(历上最全面的优化分析)
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个代理方法的实现,在可见的页面是会重复绘制页面的,所以绝大部分人都会在这里做一些代码处理比如:s....
分类:其他好文   时间:2015-07-18 19:54:59    阅读次数:118
导航控制器在pushViewController时的动画卡顿问题
昨天在调试导航控制器的时候发现在push的时候动画有卡顿的现象,出现卡顿问题的代码如下:1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {2 UIVie...
分类:其他好文   时间:2015-07-17 17:46:53    阅读次数:98
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath不执行的问题
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath不执行基本上只有3个原因1. delegate没设,一定要有self.tableView.del...
分类:其他好文   时间:2015-07-16 11:27:25    阅读次数:587
ios-tableviewcell初始化为什么要用static NSString *str = @"mycell"中得static
很多人在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{//不用static关键字修饰 NSString *identifile = @"m....
分类:移动开发   时间:2015-07-16 00:32:27    阅读次数:600
关于UITableView横扫删除的问题 [NSMutableArray removeObjectAtIndex]
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {          if (editingStyle == UITableViewCellEdi...
分类:其他好文   时间:2015-07-14 13:41:58    阅读次数:171
UITableVIewCell的设置(附标题/高度/右边的标识)
方法:-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //创建cell UITableViewCell *cell = [[UITable.....
分类:其他好文   时间:2015-07-13 11:59:49    阅读次数:141
243条   上一页 1 ... 12 13 14 15 16 ... 25 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!