Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIBackButtonItem setTitlePositionAdjustment does not work

I'm trying to make left inset for custom UIBackButtonItem (there should be place for image), but this method just do nothing. Why?

[item setTitlePositionAdjustment:UIOffsetMake(100, 0) forBarMetrics:UIBarMetricsDefault]
like image 683
Maria Avatar asked Mar 14 '14 13:03

Maria


1 Answers

Try the following method:

- (void)setBackButtonTitlePositionAdjustment:(UIOffset)adjustment forBarMetrics:(UIBarMetrics)barMetrics
like image 63
Anindya Sengupta Avatar answered Nov 10 '22 20:11

Anindya Sengupta