iphone - how to get around lack of 'add' button in ABPeoplePickerNavigationController? -
My Apps provide a custom class with the contact record in Address Book of the iPhone need to associate. If everything is fine and everything is good when I present ABPeoplePickerNavigationController and allow the user to select a current Contact. The problem is that the user is no clear way to easily allow you to add a contact record, if they're looking for
before does not exist in their Address Book < p>
You can add UINavigationBar can create a UIBarButton and therefore like ABPeoplePickerNavigationController.
peoplePicker.topViewController.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemAdd goal: self action: @selector (addPerson :)]; - (IBAction) addPerson: (ID) this {ABNewPersonViewController * view = [[ABNewPersonViewController alloc] init]; View.newPersonViewDelegate = self; UINavigationController * nc = [[UINavigationController alloc] initWithRootViewController: view]; [Self. Poker Current Model View Controller: Animated Animated: Yes]; } The issue I raised was that ABPeoplePickerNavigationController has a blank button that is located on the rightboardboardboard slot and the navigation bar - ( Zero) Navigation Controller: (UINavigationController *) Show Navigation Controller: Showcause Controller: Animated Animation: (BUAL) Animated: (UIViewController *) I have documented the entire process with me on the iPhone Let's create a contact style application Yes Hope it helps.
Comments
Post a Comment