2010-12-20 37 views
-1

我基本上呈现我的DetailViewController作为modalView.In模态导航栏永远不可见,但我没有隐藏它任何地方。请帮助!导航栏隐藏在detailViewController中时提供模态

+0

什么导航栏,你期待出现?模态视图是否有自己的导航栏? – 2010-12-20 13:04:12

+0

请让我知道为什么这个问题是downvoted.May可能是未来的原因帮助我 – Swastik 2010-12-23 04:56:02

回答

0
WriteReviewController *newReview = [[WriteReviewController alloc] initWithNibName:@"WriteReviewController" bundle:nil]; 

UINavigationController *modalNavController = [[UINavigationController alloc] initWithRootViewController:newReview]; 

// This is intended to be presented in another view controller class 
modalNavController.navigationBar.barStyle = UIBarStyleDefault; 
[self.parentViewController presentModalViewController:modalNavController animated:YES]; 
[modalNavController release]; 

此代码为我工作