objective c - Strange Bug in iOS 6 UINavigationController -


i have found strange bug in ios. when use uinavigationcontroller , push other controllers, titleview shifted right how many controllers pushed

it's looks this:

enter image description here

my code simple:

self.navigationitem.title = @"test title"; 

in second case, controller has 5th in viewcontrollers stack. controller in cases same.

i using appearance uibarbuttonitem, in appdelegate.

[[uibarbuttonitem appearance] setbackbuttontitlepositionadjustment:uioffsetmake(-1000, 0) forbarmetrics:uibarmetricsdefault]; 

i fix trick =)

[[uibarbuttonitem appearancewhencontainedin:[uinavigationbar class], nil] settitletextattributes:@{uitextattributefont: [uifont systemfontofsize:0.1]}                                                                                         forstate:uicontrolstatenormal]; 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -