WWDC笔记:2011 Session 125 UITableView Changes, Tips and Tricks
What’s New
Automatic Dimensions
- (CGFloat)tableView:(UITableView *)tableView
heightForHeaderInSection:(NSInteger)section
CGFloat UITableViewAutomaticDimension
Automatic Animation Style
UITableViewRowAnimationAutomatic
New Update Methods
- (void)moveSection:(NSInteger)section
toSection:(NSInteger)newSection
- (void)insertSections:(NSIndexSet *)sections
withRowAnimation:(UITableViewRowAnimation)animation
- (void)deleteSections:(NSIndexSet *)sections
withRowAnimation:(UITableViewRowAnimation)animation
- (void)reloadSections:(NSIndexSet *)sections
withRowAnimation:(UITableViewRowAnimation)animation
Demo
[self.tableView beginUpdates]; //更新cell位置section位置等等 [self.tableView endUpdates];
Menu Suppor
- (BOOL)tableView:(UITableView *)tableView
shouldShowMenuForRowAtIndexPath:(NSIndexPath *)indexPath
- (BOOL)tableView:(UITableView *)tableView
canPerformAction:(SEL)action
forRowAtIndexPath:(NSIndexPath *)indexPath
withSender:(id)sender
- (void)tableView:(UITableView *)tableView
performAction:(SEL)action
forRowAtIndexPath:(NSIndexPath *)indexPath
withSender:(id)sender
Multiple Selection
Table View Properties
BOOL allowsMultipleSelection
BOOL allowsMultipleSelectionDuringEditing
BOOL allowsSelection
BOOL allowsSelectionDuringEditing
Table View Method
- (NSArray *)indexPathsForSelectedRows
- (NSIndexPath *)indexPathForSelectedRow
Table View Cell Property
UIView *multipleSelectionBackgroundView
UIView *selectedBackgroundView


Automatic Cell Loading
- (void)registerNib:(UINib *)nib
forCellReuseIdentifier:(NSString *)identifier
Nib Constraints
- Nib must contain a single table view cell
- Cell’s reuse identifier must match the one specified above (or be nil)
Tips and Tricks
Action Row
Floating View
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
Dynamic Background View
两倍background大小,animation option: UIViewAnimationOptionRepeat | UIViewAnimationOptionCurveLinear
Related Session
- Simplifying Touch Event Handling with Gesture Recognizers
- Advanced Gesture Recognition
WWDC笔记:2011 Session 125 UITableView Changes, Tips and Tricks的更多相关文章
- WWDC笔记:2013 Session 203 What’s New in Cocoa Touch(未完)
		Multitasking Background fetching New background mode fetch - (void)application:(UIApplication *)appl ... 
- WWDC笔记:2013 Session 201 Building User Interfaces for iOS 7
		Text Dynamic Type Specifies fonts semantically Supports user text sizing Optimized for legibility Su ... 
- webpy使用笔记(二) session/sessionid的使用
		webpy使用笔记(二) session的使用 webpy使用系列之session的使用,虽然工作中使用的是django,但是自己并不喜欢那种大而全的东西~什么都给你准备好了,自己好像一个机器人一样赶 ... 
- iOS回顾笔记(07) -- UITableView的使用和性能优化
		iOS回顾笔记(07) -- UITableView的使用和性能优化 如果问iOS中最重要的最常用的UI控件是什么,我觉得UITableView当之无愧!似乎所有常规APP都使用到了UITableVi ... 
- MZY项目笔记:session歧路
		from my typora MZY项目笔记:session歧路 文章目录 MZY项目笔记:session歧路 那该怎么办? 1. 手动加上cookie的header. 2.自己模拟一个Session ... 
- Nginx and PHP-FPM Configuration and Optimizing Tips and Tricks
		原文链接:http://www.if-not-true-then-false.com/2011/nginx-and-php-fpm-configuration-and-optimizing-tips- ... 
- (转) How to Train a GAN? Tips and tricks to make GANs work
		How to Train a GAN? Tips and tricks to make GANs work 转自:https://github.com/soumith/ganhacks While r ... 
- Matlab tips and tricks
		matlab tips and tricks and ... page overview: I created this page as a vectorization helper but it g ... 
- LoadRunner AJAX TruClient协议Tips and Tricks
		LoadRunner AJAX TruClient协议Tips and Trickshttp://automationqa.com/forum.php?mod=viewthread&tid=2 ... 
随机推荐
- 关于Kubernetes v1.14.0的 kube-controller-manager部署
			1. kube-controller-manager准备 默认kube-controller-manager 部署在kube-apiserver部署的服务器上面服务器的配置等在这就不在列出来 二进制文 ... 
- java多线程之ForkJoinPool
			转https://www.cnblogs.com/lixuwu/p/7979480.html 阅读目录 使用 背景:ForkJoinPool的优势在于,可以充分利用多cpu,多核cpu的优势,把一个任 ... 
- 大数据学习——yum安装tomcat
			https://www.cnblogs.com/jtlgb/p/5726161.html 安装tomcat6 yum install tomcat6 tomcat6-webapps tomcat6-a ... 
- 一、SQL基础知识点补充
			SQL DML 和 DDL 可以把 SQL 分为两个部分:数据操作语言 (DML) 和 数据定义语言 (DDL). SQL (结构化查询语言)是用于执行查询的语法.但是 SQL 语言也包含用于更新.插 ... 
- HDU-3746Cyclic Nacklace,next数组简单应用。
			Cyclic Nacklace 节省篇幅不粘题面了... 看懂题后脑袋里略过KMP,学过但没怎么用过,又直接跳下一题了.. 题意:给定一个字符串,可以从两边加上一些字符使其有循环节..求最少需要加多少 ... 
- [luoguP2577] [ZJOI2005]午餐(DP)
			传送门 显然吃饭时间越长的人排在前面越好,所以先排序. f[i][j]表示前i个人,A队的打饭时间为j的最优解,每个人只有两种选择,去A队或是去B队. #include <cstdio> ... 
- 【贪心】codeforces B. Heidi and Library (medium)
			http://codeforces.com/contest/802/problem/B [题意] 有一个图书馆,刚开始没有书,最多可容纳k本书:有n天,每天会有人借一本书,当天归还:如果图书馆有这个本 ... 
- hdu   4474
			//因为n是小于等于10000可以利用这点进行搜索对n取余则余数为零时就为所找的.因为他的余数肯定小于10000所以不会无休止下去 #include<stdio.h> #include&l ... 
- Vim enhance part1
			NO1 .认识.命令 例 删除man.config中第1到30行的注释 1.光标移到#上,按下x删除 2.按下j将光标移到第二行#上,之后按下. 3.可以看到第2行的#也被删除了因为.就是重复上次命令 ... 
- 【BZOJ1061】志愿者招募(单纯形,对偶性)
			题意: 这个项目需要N 天才能完成,其中第i 天至少需要 Ai 个人. 布布通过了解得知,一共有M 类志愿者可以招募.其中第i 类可以从第Si 天工作到第Ti 天,招募费用 是每人Ci 元.新官上任三 ... 
