ios - Change navigation bar back button and remove title to make it appear like in ios7 -


i want remove button title navigation bar , put custom button make appear in ios7 (just left arrow). change change text, when change text nil, previous page title appears again. changing background image not working too, though change image

try code hide button:

self.navigationitem.hidesbackbutton=yes; self.navigationitem.leftbarbuttonitem=nil; 

create custom button this:

 cgrect frameimgback1 = cgrectmake(0, 0, 60, 35);     uibutton *back = [[uibutton alloc] initwithframe:frameimgback1];     [back setimage:[uiimage imagenamed:@"back.png"] forstate:uicontrolstatenormal];     [back addtarget:self action:@selector(back)           forcontrolevents:uicontroleventtouchupinside];   uibarbuttonitem *btnl = [[uibarbuttonitem alloc]initwithcustomview:back];     self.navigationitem.leftbarbuttonitem = btnl; 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -