-1

How to change place navigationBack button with another button?

I wrote something like:

self.navigationItem.leftItemsSupplementBackButton = YES;

NSArray *arr = [NSArray arrayWithObjects: editButton, self.navigationItem.backBarButtonItem , nil]; 
self.navigationItem.leftBarButtonItems = arr;

and I want to navigationButton after editButton.

SetFreeByTruth
  • 819
  • 8
  • 23
quba88
  • 174
  • 4
  • 18

1 Answers1

1

You should have edit button on the right and on on the left it will be default back button

for edit button on the right write this code in view did load

self.navigationItem.rightBarButtonItem=[[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStylePlain target:self action:@selector(edit)];

Then you should take one view with both these buttons on it and add this view on navigation bar

Dhara
  • 4,093
  • 2
  • 36
  • 69
  • I know how to insert button on the right side, but I want to put buttons on the left side in correct order (edit and next back) – quba88 Jul 11 '12 at 19:57