Нет необходимости вручную добавлять кнопку возврата.
Но если вам действительно нужна эта пользовательская кнопка для вызова контроллера представления, вы можете создать собственное сообщение.
-(void)popViewControllerWithAnimation {
[self.navigationController popViewControllerAnimated:YES];
}
...
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStyleBordered
target:self action:@selector(popViewControllerWithAnimation)];
Или создайте NSInvocation.
NSInvocation* invoc = [NSInvocation invocationWithMethodSignature:
[self.navigationController methodSignatureForSelector:@selector(popViewControllerAnimated:)]];
// watch out for memory management issues: you may need to -retain invoc.
[invoc setTarget:self.navigationController];
[invoc setSelector:@selector(popViewControllerAnimated:)];
BOOL yes = YES;
[invoc setArgument:&yes atIndex:2];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStyleBordered
target:invoc action:@selector(invoke)];