码迷,mamicode.com
首页 >  
搜索关键字:uitableview    ( 2119个结果
iOS 图片加载导致内存警告
虽然UITableView和UICollectionView都有cell复用机制,但是如果利用SDWebImage加载的图片本身过大且cell复用池中的个数比较多(cell的Size越小,复用池中的cell就越多), 就容易收到内存溢出的警告!控制台会打印:Received memory warni ...
分类:移动开发   时间:2016-07-19 17:02:26    阅读次数:617
tableview的Group样式下 footerView和headerView都有一个磨人的高度 需要把两个都设置一下
#pragma mark--headView -(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { if (section == 0) { return 50; }else ...
分类:其他好文   时间:2016-07-16 20:02:33    阅读次数:250
tableView的plain样式的headerView的上拉过程中悬停解决方法
//去掉UItableview headerview黏性(sticky) 去掉header的浮动效果 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { if (scrollView == self.tableView) { CGFloa ...
分类:其他好文   时间:2016-07-15 17:15:25    阅读次数:153
滑动删除
// 实现滑动删除 // 什么时候调用 - (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexP ...
分类:其他好文   时间:2016-07-14 13:19:08    阅读次数:117
tableview的reloadData应注意
http://blog.csdn.net/ouyangtianhan/article/details/7835041 http://stackoverflow.com/questions/16071503/how-to-tell-when-uitableview-has-completed-relo ...
分类:其他好文   时间:2016-07-12 19:11:10    阅读次数:143
UITableView回调和table相关成员方法详解
http://blog.csdn.net/kingsley_cxz/article/details/9123959 1.UITableView的datasource实现: //回调获取每个section中的cell的行数- (NSInteger)tableView:(UITableView *)ta ...
分类:其他好文   时间:2016-07-12 17:20:20    阅读次数:144
UITableview xib里面 cell 按钮的回调
VC cell里面点击按钮 效果图: ...
分类:其他好文   时间:2016-07-12 11:53:33    阅读次数:198
UITableview cell 的多选
利用NSMutableDictionary key值 来改变cell的状态 -(void)createUI{ table = [[UITableView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size. ...
分类:其他好文   时间:2016-07-11 19:08:06    阅读次数:111
UITableview 多行删除
// RootViewController.m #import "RootViewController.h"#import "NextViewController.h"@interface RootViewController (){ NSMutableArray * dataSource;//数据 ...
分类:其他好文   时间:2016-07-11 19:04:24    阅读次数:104
UITableView优化方案
使用不透明视图。不透明的视图可以极大地提高渲染的速度。因此如非必要,可以将table cell及其子视图的opaque属性设为YES(默认值)。其中的特例包括背景色,它的alpha值应该为1(例如不要使用clearColor);图像的alpha值也应该为1,或者在画图时设为不透明。 不要重复创建不必 ...
分类:其他好文   时间:2016-07-10 21:26:57    阅读次数:150
2119条   上一页 1 ... 31 32 33 34 35 ... 212 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!