2

Hi i'm displaying UIBarButton on Navigation bar as back button,how can i've the default back button style for the UIButton.

Regards Sam.

Sam
  • 6,215
  • 9
  • 71
  • 90

4 Answers4

5

In the parent view controller when pushing the view in didselectrowInIndex method just use the following cod:

self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:nil];
[self.navigationItem.backBarButtonItem release];
AppAspect
  • 4,461
  • 2
  • 30
  • 46
1

three20 includes a custom style for back-like buttons

reflog
  • 7,587
  • 1
  • 42
  • 47
0

You can use custom button with navigation button image.

Ishu
  • 12,797
  • 5
  • 35
  • 51
0

Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar

What you are looking for can be done by making a custom UIButton

Community
  • 1
  • 1
Bourne
  • 10,094
  • 5
  • 24
  • 51