iphone - UINavigationController Problem -


in view controller adding uinavigationcontroller , has around 20-30 pixels on top of it. doesnt fit navigationcontroller properly. soem reason adds subview 20-30 px below

navcontroller = [[uinavigationcontroller alloc] init]; navcontroller.navigationbar.tintcolor = [uicolor graycolor]; unitviewcontroller *unitcontroller = [[unitviewcontroller alloc] init]; [navcontroller pushviewcontroller:unitcontroller animated:yes]; [self.view addsubview:navcontroller.view]; 

any idea?

if full screen app perhaps unitviewcontroller's view not setup correctly. may assuming presence of status bar , leaving room it.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

php - Retrieving comment count from fb:comments widget (Facebook) -

c# - NullReferenceException in MySqlClient.NativeDriver -