您的位置:首页 > 移动开发 > IOS开发

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 不显示 所以可以注释掉 或者自己重写它
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: