Reputation: 4929
I try to set UILabel
as titleView
using [self.navigationItem setTitleView:musicArtist];
method, but it works strange with different iOS versions. UINavigationBar is in UIPopoverController
.
Here is iOS 4.3 screenshot:
As you can see it looks good. But when I switch iOS simulator at iOS 5.x I receive another result:
UILabel AutioSize settings are:
And finally If I change UILabel AutoSizing to this:
I receive this result at both iOS versions:
Where could be the problem and how to get first result at all iOS versions?
Upvotes: 1
Views: 291
Reputation: 4929
Problem solved when I've removed all AutoResizing settings.
Upvotes: 1
Reputation: 14786
Did you check to use the origin x
and y
like {0, 0}
? In the screenshots you are using y=131
so when you attach it to titleView
it will not show.
Upvotes: 0