UIScrollView 属性
来源:互联网 发布:修复ubuntu引导 编辑:程序博客网 时间:2024/04/30 03:01
首先介绍下UIScrollView的相关概念
(以上引用来自http://www.cnblogs.com/try2do-neo/archive/2011/10/13/2210532.html)
另外UITableView是UIScrollView的子类,它们在上述属性又有所不同,tabelview的contentsize是由它的下列方法共同实现的
- (NSInteger)numberOfSections;
- (NSInteger)numberOfRowsInSection:(NSInteger)section;
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
它会自动计算所有的高度和来做为它的contentsize的height.
例如你在delegate方法
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 100;
}
那么你的tabelview的contentsize就是(320, 4400)
- UIScrollView属性
- UIScrollView 属性
- UIScrollView 属性
- UIScrollView属性
- UIScrollView属性
- UIScrollView属性
- UIScrollView属性
- UIScrollView属性
- UIScrollView相关属性属性
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView的属性总结
- UIScrollView 属性详解
- dirname(__FILE__) 用法
- 100多个有用
- 做一个男人
- 类别
- 算法入门经典 7.2.1(生成1 - n 的排列)
- UIScrollView 属性
- Sybase ASE重建以及修复数据库日志
- [IT 男人帮 11-15] 程序员参考:唐僧给悟空的信
- 整理下自己写的常用库
- truts2 注解功能
- Linux操作系统下IPTables配置方法详解
- 关于IDA显示中文字符串的问题
- Date Format类(国际化日期)
- Spring2.0---- AOP XML实现五种通知