UITableView
a をaで囲む次のコードがあるUITableCell
ので、基本的にはテーブル内のテーブルです。これはiOS6
下と下では正常に機能しますがiOS7
、セカンダリ ビューをスクロールしたり押し込んだりすることはできません。
基本的には以下のコードのように問題なく表示されますが、すべてのタッチはセル内のテーブルではなく、メイン テーブルに送信されます。
以前は両方ともスクロールできました。
2 番目のテーブルをロードするコードは次のとおりです。tableViewCellWithTableView クラスは単なるテーブルセル クラスでありdidselectrowatindex
、2 番目のテーブルのパスなどが含まれています。
[[NSBundle mainBundle] loadNibNamed:@"TableViewCell" owner:self options:nil];
tableViewCellWithTableView.data = myData;
tableViewCellWithTableView.backgroundColor = [UIColor clearColor];
[tableViewCellWithTableView setBackgroundView: nil];
tableViewCellWithTableView.tableViewInsideCell.allowsSelection = YES;
tableViewCellWithTableView.tableViewInsideCell.separatorStyle = UITableViewCellSeparatorStyleNone;
tableViewCellWithTableView.tableViewInsideCell.separatorColor=[UIColor clearColor];
[cell.contentView addSubview:tableViewCellWithTableView];
[cell setNeedsDisplay];