荫不知道差距,如果它是适当的问题要问现在。我在桌面视图上使用Xcode 5(预览版)。现在的问题是如果我的表格视图被选为group
比我有第一个单元格和表格的上边缘之间的差距。的UITableView越来越顶部
为uitable视图代表该代码是下面
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 8;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *simpleTableIdentifier = @"SimpleTableItem";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
}
cell.textLabel.text = [NSString stringWithFormat:@"cell %d",indexPath.row];
return cell;
}
图片当我在XIB选择group
然而,如果我切换到plain
下面,表是正常
对这种情况有任何想法。我GOOGLE了它,但似乎没有什么在那里。在这里欢迎任何帮助。
嗯,你没有注意到设置的应用程序?我认为这是新的分组表格视图的工作原理。 – Desdenova
@NilsMunch这实际上是一个很好的问题,应该在9月18日重新开放。这不是以任何方式脱离主题。 http://meta.stackexchange.com/questions/94465/should-moderators-enforce-ndas-for-software-vendors –
以下是我解决了这个问题:http://stackoverflow.com/a/18938763/588253 –