监测tableview停止滚动- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{ if (!decelerate) { [self scrolli...
分类:
其他好文 时间:
2014-11-19 22:06:56
阅读次数:
113
在没有分割先的情况下,添加如下方法,当实例化tableview的时候调用该方法.- (void)setExtraCellLineHidden: (UITableView*)tableView{UIView*view =[ [UIView alloc]init];view.backgroundColo...
分类:
其他好文 时间:
2014-11-19 12:17:53
阅读次数:
153
先用xcode5或更低版本创建一个Category,如图:然后拷贝以下代码到.m文件中:- (void) setAlpha:(float)alpha { if (self.superview.tag == noDisableVerticalScrollTag) { if ...
分类:
其他好文 时间:
2014-11-18 23:21:47
阅读次数:
342
在你需要使用的地方,首先要调用到这个UITableView,然后设置它的偏移量为 UITableView的内容高度减去UITableView的试图高度
具体demo:
[self.tableView setContentOffset:CGPointMake(0, self.tableView.contentSize.height - self.tableView.height)];...
分类:
移动开发 时间:
2014-11-18 13:37:28
阅读次数:
159
常规配置如下 当超过tableView显示的范围的时候 后面显示的内容将会和前面重复
// 这样配置的话超过页面显示的内容会重复出现
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
// 定义唯一标识
static NS...
分类:
移动开发 时间:
2014-11-18 10:24:08
阅读次数:
510
UITableView的属性全齐,供大家参考
//以前在使用UITableView的时候,总是在cell上自己加Label,遇到cell的accessoryType不同的时候,需要自己调整Label的大小和位置. 后来发现 UITableViewCell中有textLabel和detailTextLabel可以使用,系统配置好了大小位置,可以根据cell的不同Style和大小自动调整.
...
分类:
其他好文 时间:
2014-11-18 10:19:17
阅读次数:
222
崩溃信息:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews...
分类:
移动开发 时间:
2014-11-17 19:18:51
阅读次数:
245
本文永久地址为http://www.cnblogs.com/ChenYilong/p/4103039.html ,转载请注明出处。印象笔记链接:https://app.yinxiang.com/shard/s22/sh/04150175-aac6-4981-b71d-d7246de3037b/a0f...
分类:
移动开发 时间:
2014-11-17 12:03:53
阅读次数:
269
在iOS 6 发布前,开发人员习惯使用UITableView来展示几乎所有类型的数据集合。ios 6 为 IOS 引入了全新的控制器,用来显示数据集合,集合视图控制器是与表视图控制器类似的全新UI框架。。下面讲解下一些重要的类与协议,它们是你在实现集合视图时必须知道 的。UICollectionVi...
分类:
其他好文 时间:
2014-11-16 01:50:07
阅读次数:
260