How to add a leftBarButtonItem to ABPeoplePickerNavigationController?
Posted
by al_lea
on Stack Overflow
See other posts from Stack Overflow
or by al_lea
Published on 2009-10-25T09:13:56Z
Indexed on
2010/05/30
23:02 UTC
Read the original article
Hit count: 295
iphone-sdk
Tried this, but doesn't work:
ABPeoplePickerNavigationController * people_picker = [[ABPeoplePickerNavigationController alloc] init];
people_picker.peoplePickerDelegate = self;
self.navigationController.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle: @"send"
style: self.navigationController.navigationItem.rightBarButtonItem.style
target: self
action: @selector(cancelAddressBook)] autorelease];
[self.navigationController presentModalViewController: people_picker animated: YES];
© Stack Overflow or respective owner