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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -