UITableViewStyle设置Group、Plain问题
来源:互联网 发布:赛为智能人工智能 编辑:程序博客网 时间:2024/06/07 15:47
1、当创建UIViewController添加UITableView时,
self.tableView =[[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
2、当创建UITableViewController时,需要改变UITableViewStyle时,
使用self.tableView.style = UITableViewStyleGrouped; 会出现错误
ps:
@property (nonatomic,readonly) UITableViewRowActionStyle style;
UITableViewStylePlain和UITableViewStyleGrouped是UITableViewStyle类型。
查UITableViewController的SDK文档,发现:
Table views can have one of two styles, UITableViewStylePlain and UITableViewStyleGrouped. When you create a UITableView instance you must specify a table style, and this style cannot be changed.
可以在Xib文件的属性下直接修改为Group或Plain。
0 0
- UITableViewStyle设置Group、Plain问题
- IOS-UITableViewStyle设置Group、Plain问题
- IOS-UITableViewStyle设置Group、Plain问题
- uitableview group的一些问题 (设置两个section之间的距离,设置背景颜色 等)在plain下去掉foot view的粘性
- 设置searchDisplayController的searchResultsTableView的UITableViewStyle为grouped
- tableView plain样式和group样式区别
- UITableview Group 与plain 样式区别
- tableview的plain与group区别
- 关于UITableViewStyle (转载)
- UITableview Plain风格下 SectionHeader悬浮问题
- iOS开发之UITableView的两种类型(plain和group)
- 关于VC单选按钮不能设置变量的问题以及Group属性的设置
- 关于VC单选按钮不能设置变量的问题以及Group属性的设置
- 关于VC单选按钮不能设置变量以及Group属性的设置问题
- 用程序发plain text email的换行问题
- Transparent-Flash-Control-in-Plain-C编译问题
- group by问题
- 关于group的问题
- 关于google的gson-2.3.1.jar,发现一个奇怪的bug
- 文章标题
- Hibernate自动建表编码问题
- 2015-11-12 android对变量监听(一)使用子线程定时监察
- js中(!exp)
- UITableViewStyle设置Group、Plain问题
- 最近学习太慢
- xcode7 update
- 浅谈软件工程学习心得
- weiphp——关于留言板插件的创建和使用
- c++中临时变量不能作为非const的引用参数
- react native环境搭建
- $HTTP_RAW_POST_DATA 与$_POST
- 关于宏定义中#和##符号的使用和宏定义展开问题