[cpp] view plain copy 1.系统默认的颜色设置 [cpp] view plain copy [cpp] view plain copy [cpp] view plain copy //无色 cell.selectionStyle = UITableViewCellSelectio ...
分类:
其他好文 时间:
2016-05-16 19:50:09
阅读次数:
144
NO1:代码方式 //self.automaticallyAdjustsScrollViewInsets = NO; NO2:storyboard方式 来自为知笔记(Wiz) ...
分类:
其他好文 时间:
2016-05-16 17:19:36
阅读次数:
101
//分割线左对齐 -(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPat{ if ([cell respon ...
分类:
其他好文 时间:
2016-05-16 11:07:22
阅读次数:
109
1. UITableView 设置CGRect tableViewRect = CGRectMake(0.0, 0.0, 50.0, 320.0);self.tableView = [[UITableView alloc] initWithFrame:tableViewRect style:UITa ...
分类:
移动开发 时间:
2016-05-16 09:20:49
阅读次数:
408
//********************************************************************************//*自定义类 UITableViewCell START//*************************************... ...
分类:
其他好文 时间:
2016-05-13 20:30:06
阅读次数:
254
UITableViewDataSource 协议中常用方法 1.设置右边 索引值 - ( NSArray *)sectionIndexTitlesForTableView:( UITableView *)tableView 2. 设置分组标识 - ( NSString *)tableView:( U ...
分类:
其他好文 时间:
2016-05-13 10:29:24
阅读次数:
107
在TableView中的数据发生改变的时候,往往会发现UITableView中的数据没有更新,通常需要滚动后才会更新。 这个是因为他的重绘机制的问题。 一般情况下可以用下面这个方法解决: 在viewWillAppear中加入这两句: - (void)viewWillAppear:(BOOL)anim ...
分类:
其他好文 时间:
2016-05-13 09:17:02
阅读次数:
152
前些时做的Swift版本的瀑布流的Demo《Swift UITableView瀑布流/NSURLConnection异步网络请求》时,使用的是NSURLConnection做的网络异步请求,图片的异步加载使用的是GCD做的。在使用的过程中,网络请求部分是没有什么问题的,但是在图片的异步加载时,由于图片没有缓存,所以在上下滑动的时候,需要不断的加载图片,所以用户体验不好。
在OC中,我们有AFNet...
分类:
编程语言 时间:
2016-05-12 22:46:40
阅读次数:
325
一,tableview自带编辑模式,可以添加、删除、移动item
二,可以添加section或者table的header和footer
三,使用interface Builder创建header的layout
四,UITableView显示header前,会向它的controller发送headerVIew消息
- (UIView *)headerV...
分类:
其他好文 时间:
2016-05-12 22:15:19
阅读次数:
128
在model中加入一个属性,cell的高度。
LMTestModel.h
#import
#import "LMTestModel.h"
@interface LMTestCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBO...
分类:
其他好文 时间:
2016-05-12 16:28:47
阅读次数:
140