整理报错和警告信息,为以后自己查看方便用![报错1] 信息:Static table views are only valid when embedded in UITableViewController instances 解释:如果 UITableView 不是在 UITableViewCont...
分类:
其他好文 时间:
2015-12-09 19:07:08
阅读次数:
112
基本应用如果你有self-satisfied cell,那么你应该做的是:#import "UITableView+FDTemplateLayoutCell.h"- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath...
分类:
其他好文 时间:
2015-12-09 11:28:03
阅读次数:
133
#import "ViewController.h"@interface ViewController ()@property(nonatomic, strong)UITableView *tableView;@property(nonatomic, strong)NSMutableArray *s...
分类:
移动开发 时间:
2015-12-09 00:05:20
阅读次数:
310
An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and m...
分类:
其他好文 时间:
2015-12-08 23:45:01
阅读次数:
835
主要使用了tableView的代理方法行将要显示的时候- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(nonnull NSIndexPath *...
分类:
其他好文 时间:
2015-12-08 14:22:27
阅读次数:
153
影响UITableViewUITableView滚动的流畅性原因:1、 在代理方法中做了过多的计算占用了 UI 线程的时间2、同上3、Cell 中 view 的组织复杂,比如使用layer并不会有太大影响,但是如果layer使用了透明,或者圆角、变形等效果,就会影响到绘制速度。关于第一点,首先要明白...
分类:
其他好文 时间:
2015-12-07 18:04:19
阅读次数:
110
1.iOS--- UITableView + UISearchDisplayController 实现搜索功能2.iOS---iOS9(通过CoreSpptligt API)实现搜索功能
分类:
移动开发 时间:
2015-12-07 14:16:31
阅读次数:
153
iOS中UISearchDisplayController用于搜索,搜索栏的重要性我们就不说了,狼厂就是靠搜索起家的,现在越来越像一匹没有节操的狼,UC浏览器搜索栏现在默认自家的神马搜索,现在不管是社交,O2O还是在线教育等都会有一个搜索栏的实现,不过彼此实现效果是不一样的。iOS中的搜索栏实现起来...
分类:
移动开发 时间:
2015-12-07 14:16:03
阅读次数:
1021
1. UICollectionView 类是iOS6 新引进的API,用于展示集合视图,布局更加灵活,可实现多列布局,用法类似于UITableView类。 2.自定义UICollectionViewCell,与自定义tableViewCell基本一致。 UICollectionViewFlowLa....
分类:
其他好文 时间:
2015-12-06 17:30:11
阅读次数:
177
一、UICollectionView集合视图 其继承自UIScrollView。 UICollectionView类是iOS6新引进的API,用于展示集合视图,布局更加灵活,可实现多列布局,用法类似于UITableView类。1、需要遵循的协议:1)UICollectionViewDat...
分类:
其他好文 时间:
2015-12-06 17:29:57
阅读次数:
112