xcode - Setting the height of the UINavigationBar -


i have set uinavigationbar background image image height of 68px opposed default 44px. image shown fine, content in uinavigationcontroller overlapped in first (68-44)px = 12px header image.

how fix this? have tried setting frame of uinavigationbar without luck.

thanks, caspar.

this code (appdelegate.m):

uinavigationcontroller *navigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:self.fronttableviewcontroller]; uinavigationbar *navbar = navigationcontroller.navigationbar; [navbar setbackgroundimage:[uiimage imagenamed:@"header"] forbarmetrics:uibarmetricsdefault]; self.window.rootviewcontroller = navigationcontroller; 

image showing problem

try setting image navigationbar way

self.navigationitem.titleview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"mynavbarimage.png"]]; 

or have @ answer


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -