我問不要所示的UINavigationController上modalView
[self presentModalViewController:searchRegionController animated:YES];
後,我試圖通過
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Add" style:UIBarButtonItemStyleBordered target:self action:@selector(next:)] autorelease];
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonItemStyleBordered target:self action:@selector(cancelAdd:)] autorelease]
self.navigationItem.titleView = someView;
請提供你到底想要什麼,你希望有一個導航控制器或導航欄..do一些信息呢?以及在哪種方法中你想添加你的navigationController? – Bonnie 2012-02-09 10:18:02
導航欄。我只想在模態視圖上自定義導航欄。如果我將通過「pushToView ...」查看其工作,但「presentModalView ...」沒有; – 2012-02-09 10:44:48