サブビューとして aUIViewController
のサブクラスを追加する a があります。UITableView
例えば
@interface ViewController : UIViewController
@interface ItemList : UITableView
( ) オブジェクトViewController
viewDidLoad
を作成し、それをビューに追加します。ItemList
itemList
viewcontroller
- (void)viewDidLoad {
...
[self.view addSubview:itemList];
}
私はナビゲーションコントローラにアクセスできないので、別のものを にプッシュするにはどうすればdidSelectRowAtIndexPath
よいですか?ItemList
UITableView
viewcontroller
navigationcontroller
@implementation ItemList
{
...
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[self.navigationController pushViewController:newViewControllerobject animated:YES];
}
}