Search
Goodies

Social Networks
Designs I Like
« here is a freebie: an iBook from Stanford University about iOS programming | Main | AppCooker on sale for a very limited time »
Saturday
Nov032012

Customizing UINavigationBar in iOS 5 with strange behaviour

Here is a very strange iOS 5 behaviour (same in iOS 6). I'm customizing the appearance of a UINavigationBar with a UIImage as shown below.

The following code is used at application startup:

The end result is what I expect for the first 4 tabs of my UITabbar items like this:

The lighting comes from the top of the app. But, when selecting the More tab and all the other sections, the UINavigationBar look becomes flipped upside down like this:

Does somebody know why? What could be the cause of this? If you look carefully, the UIImage I'm using is actuallty flipped upside down in order to get the desired result... but when selecting the More UITabbar item and the following section, it gets displayed as it is really in the .png file but it is not the desired result as I ant the lighting to come from the top of the app.

This question was also posted on StackOverflow here: Customize UINavigationBar in iOS 5 strange behaviour

References (2)

References allow you to track sources for this article, as well as articles that were written in response to this article.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>