//默认选中某个cell [self.searchResultTV selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:YES scrollPosition:UITableViewScrollPositi ...
分类:
移动开发 时间:
2017-01-16 19:49:27
阅读次数:
227
UITableViewRowAction类object defines a single action to present when the user swipes horizontally in a table类的属性style: UITableViewRowActionStyle按钮的styl... ...
分类:
其他好文 时间:
2017-01-14 10:14:46
阅读次数:
125
UITableView有两种模式,普通模式和编辑模式。在编辑模式下可以对cell进行排序、删除、插入等等。如何进入编辑模式调用tableView的setEditing(editing: Bool, animated: Bool)方法。进入编辑模式以后发生了什么向每个cell发送setEditing:... ...
分类:
其他好文 时间:
2017-01-14 10:12:05
阅读次数:
184
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.dataArray = [NSMutableArray a ...
分类:
移动开发 时间:
2017-01-13 11:10:26
阅读次数:
225
特别感谢英文网 http://blog.revivalx.com/2015/02/23/uitableview-tutorial-in-swift-using-alamofire-haneke-and-swiftyjson/ 有一点特别注意的是,方法 self.tableView.reloadD... ...
分类:
编程语言 时间:
2017-01-06 23:48:23
阅读次数:
397
在iOS开发中UITableView可以说是使用最广泛的控件,我们平时使用的软件中到处都可以看到它的影子,基本大部分应用都有UITableView。当然它的广泛使用自然离不开它强大的功能,今天就针对UITableView重点展开讨论。 1.UITableView有两种风格:UITableViewSt ...
分类:
其他好文 时间:
2017-01-04 18:47:17
阅读次数:
204
http://blog.csdn.net/eqera/article/details/8134986 1.1. Collection View 全家福: UICollectionView, UITableView, NSCollectionView n 不直接等效于NSCollectionView ...
分类:
移动开发 时间:
2017-01-03 16:45:09
阅读次数:
257
1. UIImage imageWithContentsOfFile卡顿 [[UIImage alloc] initWithContentsOfFile 卡顿 2.uitableview scroll to top NSIndexPath *indexPath = [NSIndexPath inde ...
分类:
其他好文 时间:
2016-12-30 13:26:45
阅读次数:
220
1.自己计算Cell的高度返回: 1>model中计算: 2.自定义CellFrame类存储Cell高度: 2.使用第三方Masonry自使用行高: 很方便,要求自己把约束要设置完全!!! ...
分类:
其他好文 时间:
2016-12-28 18:41:51
阅读次数:
152
UITableView的Group样式下顶部空白处理 //分组列表头部空白处理 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0.1)]; self.tableView.tableHeaderView = view;... ...
分类:
移动开发 时间:
2016-12-28 11:48:39
阅读次数:
280