我遇到了一个关于Xcode 6 iOS8中Uitableview单元的奇怪问题。当我从故事板创建一个tableViewController并选择静态单元格时,视图就会显示出来。但是,当我将相同的视图连接到TableViewController源时,单元格消失。我连接了所有必要的东西(可重复使用的cell_ID等)。有人经历过吗?这曾经对我有用。提前致谢!
答案 0 :(得分:1)
请确保您未在UITableViewDatasourceDelegate
中实施任何TableViewController
方法,例如以下方法。
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
}