iOS UITableView自动滚动到底部
2016-01-07 14:10
495 查看
//构建indexPath,数据源要判断下,如果数据源数组里面元素为0,会崩溃
NSIndexPath *indexPath = [NSIndexPath
indexPathForRow:self.dataArray.count
- 1
inSection:0];
[self.TableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];
NSIndexPath *indexPath = [NSIndexPath
indexPathForRow:self.dataArray.count
- 1
inSection:0];
[self.TableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];
相关文章推荐
- MFC工程的Dui+Win32改造案例遇到的问题总结
- IOS UIAlertControl与UIAlertAction
- 关于PropertyInfo setvalue()和PropertyInfo getvalue()
- ios开发--UIImage转化成NSData
- iOS中UISearchBar(搜索框)使用总结
- 关于使用百度UEditor富文本编辑器的总结
- UITableView使用
- UITableView 属性集合
- iOS下 UILabel 如何自动换行
- 处理二值查询 Processing Boolean queries
- 3.UIImageView基本使用
- 如何实现一个搜索引擎(2):查询索引 How to Implement a Search Engine Part 2: Query Index
- 【转载】GUID vs INT Debate
- 2.UILabel的基本使用
- Java源码-AbstractStringBuilder
- UITableView中复用cell显示信息错乱
- NSInteger 与 NSUInteger 和 int与 NSInteger 区别
- 基于Elasticsearch+Fluentd+Kibana的日志收集分析系统搭建与应用
- UICollectionView
- django实现用户登陆访问限制@login_required