ios static cell 不显示
2016-03-25 15:55
459 查看
在storyboard中 选择static cell 后
源文件中若 再实现 Table view data source 会以源文件的代码为准,
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
return0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete implementation, return the number of rows
return0;
}
以上代码若不修改的话,会造成 static cell 不显示 所以可以注释掉 或者自己重写它
源文件中若 再实现 Table view data source 会以源文件的代码为准,
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
return0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete implementation, return the number of rows
return0;
}
以上代码若不修改的话,会造成 static cell 不显示 所以可以注释掉 或者自己重写它
相关文章推荐
- iOS应用程序状态切换相关
- iOS中使用int类型会出现的问题和解决办法
- IOS开发常用函数
- iOS7 TextKit 框架的简单实用
- iOS 本地推送通知
- IOS 保存图片至相册
- iOS中的一些细节
- iOS数据存储--Core Data
- iOS 9.3真机适配-Could not find Developer Disk Image问题
- iOS开发-OpenGLES的新手教程
- vvebo源码学习(一)
- 一些 iOS 开源库和第三方组件
- ios中是否安装了某个应用-canOpenURL
- iOS使用Workspace来管理多项目
- 六大Nagios常见问题解决办法
- 1.1iOS编程规范(一)
- 关于文件管理
- ios动态创建类Class
- 1.2iOS常用的开源库(一)
- iOS 8 Auto Layout界面自动布局系列4-使用VFL添加布局约束