ios - Change UINavigationBar background image and make the UINavigationBar to scale -


what easiest way change uinavigationbar background image , make main uinavigationbar scale background image size?

i designed navigation bar not size of table view controller navigation bar, , imported image xcode , want like:

[self.navigationcontroller.navigationbar setbackgroundimage:[uiimage imagenamed:@"bg.png"] forbarmetrics:uibarmetricsdefault]; 

but not work, anyway think way have problem height since designed nav bigger.

how can please?

it's better not that, there hacks can do, example hide navigation bar , create personalized bar height want.

check post: https://stackoverflow.com/a/7533098/4559321

i recommend change design fit standard uinavigationbar , save lot of work.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -