-2

階層UITableViewを作成するには? したがって、セルをセル上に移動すると、テーブルビューが作成されます。iOSの作成ディレクトリのような効果

何か案は?あなたはいくつかの例を持っているかもしれません、それを共有してください!

4

1 に答える 1

1

primaryViewControllerこれは、となどの 2 つの UITableViewController を作成することで実現できますdetailViewControllerprimaryViewControllerの .m ファイルに、次への遷移のロジックを追加しdetailViewControllerます。

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
     // Navigation logic may go here. Create and push another view controller.
     DetailViewController *detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil];
     // ...
     // Pass the selected object to the new view controller.
     [self.navigationController pushViewController:detailViewController animated:YES];
}
于 2013-06-21T06:16:38.243 に答える