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; 
try setting image navigationbar way
self.navigationitem.titleview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"mynavbarimage.png"]]; or have @ answer
Comments
Post a Comment