swift - how to adjust y-axis of back button in iOS -


i have created custom navigation controller subclassing uinavigationcontroller. when increase size of navigation bar button slides down. then how adjust y-axis of button.

enter image description here

self.navigationbar.frame = cgrect(x:0, y: 20, width: self.view.frame.size.width, height: 64.0) 

i able adjust y axis of title below code

self.navigationbar.settitleverticalpositionadjustment(-30, for: .default) 

try - (void)setbackbuttontitlepositionadjustment:(uioffset)adjustment forbarmetrics:(uibarmetrics)barmetrics; - (void)setbackbuttonbackgroundverticalpositionadjustment:(cgfloat)adjustment forbarmetrics:(uibarmetrics)barmetrics;


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -