ios - How can I add default left arrow in leftBarButtonItem? -
i used third party code (menu) in application change navigation controller button title. therefore used code this:
self.navigationitem.hidesbackbutton = yes; self.navigationitem.leftbarbuttonitem = [[[uibarbuttonitem alloc] initwithtitle:@"geri" style :uibarbuttonitemstylebordered target:self action:@selector(mycustomback)] autorelease];
this code work fine there no default left arrow image in ios 7, rectangle button created in ios 6. how can add default left image (not custom) in button?
you need own arrow image.
create regular uibutton
custom style , background image (arrow) set action, create uibarbuttonitem
, put button custom view;
Comments
Post a Comment