ios - Remove UINavigationBar back button title -
is there way remove title of button items in all view controllers of app?
note: important thing all word. closest i've been this solution:
[[uibarbuttonitem appearance] setbackbuttontitlepositionadjustment:uioffsetmake(0, -60) forbarmetrics:uibarmetricsdefault];
but mention in comment there's issue large titles being pushed right solution not valid.
just set title
of button ""
here's example in swift
self.navigationitem.backbarbuttonitem = uibarbuttonitem( title: "", style: uibarbuttonitemstyle.plain, target: nil, action: nil)
to in view controllers, make baseviewcontroller
include line in viewdidload
method. when have viewcontroller subclass baseviewcontroller
.
your solution work if move x value -150, me sounds hack because still showing time, off view bounds.
Comments
Post a Comment