//允许cell可以进行编辑 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ return YES; } //cell的编辑类型 - (UITableViewCell ...
分类:
其他好文 时间:
2016-08-01 12:05:55
阅读次数:
152
1.设置collectionView的高度 1.1为什么要设置高度? collectionView是在tableView的footView里面 , tableView能滚动,collectionView也能滚动 我们不想让collectionView滚动 1.2怎么可以让collectionView ...
分类:
其他好文 时间:
2016-07-31 15:55:31
阅读次数:
191
要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar及其他如Dialog、Toast、EditText、TableView、Activity Animation等等。 一、 ...
分类:
移动开发 时间:
2016-07-30 16:36:54
阅读次数:
371
转自简书:http://www.jianshu.com/p/50b63a221f09 http://www.jianshu.com/p/08f194e9904c 原作者:叶孤城___ self.tableView.tableFooterView = [[UIView alloc] init];试过的 ...
分类:
移动开发 时间:
2016-07-30 12:01:45
阅读次数:
345
TableView 下拉表头放大 导航栏颜色透明度随着TableView偏移量渐变 用storeboard 布局,之前尝试在storeboard中设置tableview的表头,但是那样弄出来的效果 表头不贴着上面,后来改成storeboard和代码 结合,最后实现的这个效果 下载链接: https: ...
分类:
其他好文 时间:
2016-07-29 17:12:06
阅读次数:
243
for (UIView *cellView in cell.subviews){ [cellView removeFromSuperview]; } 避免图片出现问题 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRow ...
分类:
其他好文 时间:
2016-07-28 15:39:11
阅读次数:
199
效果八: 代码: 上面代码改变 Rotate transform = CATransform3DRotate(transform, M_PI_2, 0.5, 0.0, 0);// 变化的角度 x = 0.5 y = 0.5 效果十: ...
分类:
其他好文 时间:
2016-07-28 14:20:12
阅读次数:
338
1、若用方法: //-(BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath{ // return NO; //} 会导致,tableview都不能相应cell的点 ...
分类:
其他好文 时间:
2016-07-25 18:03:03
阅读次数:
249
如何使用UITableViewRowAction实现右滑选择呢? 1、在iOS8以前,我们实现tableview中滑动显示删除,置顶,更多等等的按钮时,都需要自己去实现,在iOS8中系统已经写好了,只要一个代理方法和一个类就行了 2、iOS8的协议对了一个方法,返回值是数组的tableview:ed ...
分类:
移动开发 时间:
2016-07-24 01:45:50
阅读次数:
209
局部刷新//一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimatio ...
分类:
其他好文 时间:
2016-07-23 13:24:28
阅读次数:
224