在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 不显示 所以可以注释掉 或者自己重写它