Alex Rivera | Logout

Change UINavigationBar Height

Asked 2009-05-21T20:32:22.557
22

Can some one tell me how to change the navigation bar height?

Here is what i have so far:

CGFloat navBarHeight = 10;
self.navigationController.navigationBar.frame.size.width = navBarHeight;
Edit
Report

1 Answer

3

self.navigationController.navigationBar.frame is a readonly property on iOS version 4.x

it will be changed even though, you will see abnormal behavior.

for example, when app state changed to background and get back to foreground the Navigation bar will show original sized height

answered 2011-08-11T01:53:46.420

Your Answer