ios static cell 不显示

来源:互联网 发布:stm8单片机 开发环境 编辑:程序博客网 时间:2024/05/02 02:43

在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 不显示  所以可以注释掉 或者自己重写它
0 0
原创粉丝点击