Application shows UIBarButtonItem
in the self.navigationItem.leftBarButtonItem
successfully.
Button created like this.
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:Localized(kSelect) style:UIBarButtonItemStylePlain
target:self action:@selector(onSelectButtonPressed:)];
And everything works fine only when i enable Enable Button Shapes in Accessibility leftBarButtonItem
is disappearing but is still active and i can select this button. After debagging it is possible to highlight that button text is changed to the white.
Use the
UIButton
and then customise it according to your need, then instantiateUIBarButtonItem
from it.