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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -