0

I used third party code (menu) in my application to change my navigation controller back button title. Therefore I used code like this:

self.navigationItem.hidesBackButton = YES;
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Geri" style :UIBarButtonItemStyleBordered target:self action:@selector(myCustomBack)] autorelease];

This code work fine but there is no default left arrow image in iOS 7, also rectangle button created in iOS 6. How can I add default left image (not custom) in back button?

The Guy with The Hat
  • 10,836
  • 8
  • 57
  • 75
cdsoft
  • 621
  • 2
  • 8
  • 15
  • possible duplicate of [creating back arrow shaped leftBarButtonItem on UINavigationController](http://stackoverflow.com/questions/3310454/creating-back-arrow-shaped-leftbarbuttonitem-on-uinavigationcontroller) – Shubhank Mar 24 '14 at 15:37
  • If I set custom left arrow button, there is different left button in ios 6, how can I solve this problem? – cdsoft Mar 25 '14 at 12:59

1 Answers1

0

You need own arrow image.

Create regular UIButton with custom style and background image (arrow) also set action, then create UIBarButtonItem and put this button as custom view;

sage444
  • 5,661
  • 4
  • 33
  • 60