I have that code. It can add edit button to navigatin bar, but back button still exists, but it becomes unresponsible.
UIBarButtonItem *editButton = [[UIBarButtonItem alloc]
initWithTitle:@"Edit"
style:UIBarButtonItemStyleBordered
target:nil
action:nil];
[[self.navigationController.navigationBar.items objectAtIndex:1] setRightBarButtonItem:editButton];
[[self.navigationController.navigationBar.items objectAtIndex:1]setHidesBackButton:YES];
simply and short:
or