IOS 8 ABPeoplePickerNavigationController subview - replace cancel button

I need to show the address book in my application.

Can I replace or hide the cancel button? Cancellation doesn't make sense in my opinion (not modal).

picker = [[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
picker.navigationBar.hidden = NO;
[self.view addSubview:picker.view];

      

[picker setAllowsCancel:NO]

does exactly what I want, but it's not a public API call.

It is also not possible to hide the navigation bar in iOS 8. In iOS 7 I just wrote:

picker.navigationBar.hidden = YES;

      

+3


source to share





All Articles