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:
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
Post a Comment