1
ボタンをクリックしてkalviewcontrollerを押している間にナビゲーションバーが表示されません。ナビゲーションバーを追加するにはどうすればいいですか?そのため、ボタンをクリックするとコントローラがどこにプッシュされているのかを見ることができます。ナビゲーションバーがありません
kal = [[[KalViewController alloc] init]autorelease];
kal.title = @"Calendar of game";
kal.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self
action:@selector(addEvent)] autorelease];
kal.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Back"
style:UIBarButtonItemStyleBordered target:self action:@selector(backToPrevious)]
autorelease];
kal.delegate = self;
dataSource = [self init];
kal.dataSource = dataSource;
[self.navigationController pushViewController:kal animated:YES];
あなたは彼がnavigationControllerを作成したと仮定しているので、あなたは彼のnavigationControllerを隠していると仮定していますか?あなたはこの仮定を言及していません... – samfisher