ストーリーボードを使用するときに含まれるマスター詳細アプリケーションは、ビューでこのコードが読み込まれました。
UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(insertNewObject:)];
.xib'S と同じプロジェクトでこれを使用したい
UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(showGegenstellenView)];
問題は、このコードをストーリーボード プロジェクトに実装できないことです。ストーリーボード専用のヘルプが見つかりません...
-(void)showGegenstellenView{
GegenstellenViewController *gegenstellenViewController = [[GegenstellenViewController alloc]initWithMasterController:self Gegenstellen:nil];
[self presentModalViewController:gegenstellenViewController animated:YES];
}
最後に、テーブル ビューで [追加] ボタンをクリックすると、ビューにフォーミュラーが表示されます。これはすべて、私が持っているxibのプロジェクトで機能します。でも絵コンテで欲しい!チームビューアーを介して、またはメールで兄弟としてxibプロジェクトを見たい場合、私は問題ありません。
よろしくジョン