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

最新文章

  1. NOIP2015 心得
  2. 《Python CookBook2》 第一章 文本 - 检查字符串中是否包含某字符集合中的字符 && 简化字符串的translate方法的使用
  3. 理解php Hash函数,增强密码安全
  4. Python核心编程2第五章课后练习
  5. HBase shell 操作命令记录
  6. CSS3 @keyframes 规则
  7. 【USACO09OCT】热浪Heat Wave
  8. javascript中apply、call和bind的区别及方法详解
  9. 深入理解javascript原型和闭包(转)
  10. opencv3.1+cmake3.7.2+cuda9.1+vs2015+opencv-contrib+win10x64
  11. Jenkins+Git+Maven构建并部署war包到tomcat
  12. C#进阶系列——AOP
  13. 查看windows上次开机时间
  14. 我推荐阅读的微信公众号-IT类
  15. Android使用binder访问service的方式(一)
  16. git实践:对比svn
  17. NEFU 118 - n!后面有多少个0 & NEFU 119 - 组合素数 - [n!的素因子分解]
  18. 使用Bootstrap 3开发响应式网站实践01,前期准备、导航区域等
  19. Note.js的stream用法一例
  20. ASP.NET MVC ajax处理 AjaxResult

热门文章

  1. docker守护式容器运行管理
  2. redhat 7.x 、redhat 6.x查看硬盘UUID方法
  3. robotframework使用requestsLibrary进行接口测试
  4. IDEA maven 无法加载已经安装的模块依赖包
  5. Struts2的Action配置的各项默认值
  6. 返回json格式的数据
  7. 【概率dp】D. Card Collector
  8. MT6755 使用R63350 IC 出现唤醒概率性闪白,并导致ESD FAIL
  9. [CodePlus2017]晨跑
  10. CF830B:Cards Sorting