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
  • 5,787
  • 8
  • 68
  • 86

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,441
  • 2
  • 29
  • 46
1

three20 includes a custom style for back-like buttons

reflog
  • 7,516
  • 1
  • 41
  • 47
0

You can use custom button with navigation button image.

Ishu
  • 12,816
  • 5
  • 34
  • 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
  • 9,700
  • 5
  • 23
  • 51