今質問するのが適切かどうかはわかりません。テーブル ビューで Xcode 5 (プレビュー バージョン) を使用しています。group
現在の問題は、最初のセルとテーブルの上端の間にギャップがあるよりも、テーブル ビューが選択されている場合です。
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;
}
group
xibで選択しているときの下の画像
ただし、に切り替えている場合plain
、テーブルは正常です
この状況についての考え。私はそれをグーグルで検索しましたが、そこには何もないようです。ここではどんな助けも歓迎します。