objective c - How to change leftBarbuttonItem title? -


i want change leftbarbutton title. i've tried

uibarbuttonitem *newbackbutton = [[uibarbuttonitem alloc] initwithtitle:@"back"                                  style:uibarbuttonitemstylebordered                                 target:nil                                 action:nil]; [[self navigationitem] setleftbarbuttonitem:newbackbutton]; 

but brings changes

enter image description here

but want

enter image description here

how can possible?

it may helpful

      uibarbuttonitem *backbarbutton = [[uibarbuttonitem alloc] initwithtitle:@"back" style:uibarbuttonitemstyledone target:self action:@selector(backaction:)];       self.navigationitem.leftbarbuttonitem = backbarbutton; 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -