Maria
Maria

Reputation: 765

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]

Upvotes: 5

Views: 1381

Answers (1)

Anindya Sengupta
Anindya Sengupta

Reputation: 2579

Try the following method:

- (void)setBackButtonTitlePositionAdjustment:(UIOffset)adjustment forBarMetrics:(UIBarMetrics)barMetrics

Upvotes: 6

Related Questions