code 1 :
UIBarButtonItem * item = [[UIBarButtonItem alloc] initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:self action:@selector(exits)];
//[item setBackgroundVerticalPositionAdjustment:10.0f forBarMetrics:UIBarMetricsDefault];
self.navBar.topItem.leftBarButtonItem = item;
[[UIBarButtonItem appearance] setBackgroundVerticalPositionAdjustment:+5 forBarMetrics:UIBarMetricsDefault];
code 2:
UIBarButtonItem * item = [[UIBarButtonItem alloc] initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:self action:@selector(exits)];
//[item setBackgroundVerticalPositionAdjustment:10.0f forBarMetrics:UIBarMetricsDefault];
self.navBar.topItem.leftBarButtonItem = item;
[[UIBarButtonItem appearance] setTitlePositionAdjustment:UIOffsetMake(0, 50) forBarMetrics:UIBarMetricsDefault];
I tried both the above code this did not work
What i want to do is get back UIBarButtonItem move down in level of My Example title. How to do it.