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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -