abpersonviewcontroller

deleting a contact from address book using personViewController

无人久伴 提交于 2020-01-06 04:34:05
问题 I am getting hand over the address book and created it successfully without any option of 'deleting a contact' from address book. Is there any method to delete contact from address book. I got help from i OS reference library . I am using personViewController methods 回答1: Take a look at ABPersonViewController+Delete category which does not use any private methods: https://github.com/shrtlist/ABDelete 来源: https://stackoverflow.com/questions/5038840/deleting-a-contact-from-address-book-using

Directly open ABPersonViewController in EDIT MODE DIRECTLY in iphone

こ雲淡風輕ζ 提交于 2020-01-04 04:26:11
问题 I am developing address book app. When user selects a user from a contact list , I want to open that record directly in EDIT mode using ABPersonViewController instead of clickng Edit button of ABPersonViewController . How can I achieve this? Thanks 回答1: Just call setEditing after the view is displayed: ABPersonViewController *ab = [[ABPersonViewController alloc] init]; ab.allowsEditing = YES; // customize as you see fit [self.navigationController pushViewController:ab animated:YES]; [ab

ABPersonViewController delete button warning

﹥>﹥吖頭↗ 提交于 2019-12-25 03:49:13
问题 I have an iPhone application that I use the ABPersonViewController and I allow delete. The thing is that the application is a TabBar application and when i use the regular delete method I get this warning: Presenting action sheet clipped by its superview. Some controls might not respond to touches. On iPhone try -[UIActionSheet showFromTabBar:] or -[UIActionSheet showFromToolbar:] instead of -[UIActionSheet showInView:]. the problem is that when I try to press on the "Cancel" of the delete,

How to add a return button for ABPersonViewController's navigationbar?

女生的网名这么多〃 提交于 2019-12-23 04:21:05
问题 When I display an ABPersonViewController , I need a button that allows me to dismiss it and return to the previous screen. How do I add this? 回答1: Oh, I got the answer. ABPersonViewController *personViewController = [[ABPersonViewController alloc] init]; personViewController.addressBook = addr; personViewController.displayedPerson = ABAddressBookGetPersonWithRecordID(addr, (ABRecordID)personID); personViewController.allowsEditing = YES; personViewController.personViewDelegate = self;

Show custom contact information

允我心安 提交于 2019-12-10 11:42:19
问题 So I have an MKMapView and I have a pin on it with a disclosure button. I want the user to be able to tap the disclosure button and the navigation controller to push a new view controller. But I want that new view controller to look like the contacts viewController that comes standard in the contacts app. I need it to display custom contact information because the contact will not be in the users contacts. I have been playing around with ABPerson, but I can't figure it out. I want that

Swift: Copy Information Selected by User in ABPersonViewController to Dictionary

我的未来我决定 提交于 2019-12-09 13:46:30
问题 I'm trying to implement the func personViewController(personViewController: ABPersonViewController!, shouldPerformDefaultActionForPerson person: ABRecord!, property property: ABPropertyID, identifier valueIdentifier: ABMultiValueIdentifier) -> Bool function, which is part of the ABPersonViewControllerDelegate protocol and is called whenever the user clicks on an item in the ABPersonViewController , such that any information the user selects will be copied to a [String : String] dictionary

How to add a return button for ABPersonViewController's navigationbar?

我与影子孤独终老i 提交于 2019-12-07 03:30:30
When I display an ABPersonViewController , I need a button that allows me to dismiss it and return to the previous screen. How do I add this? Oh, I got the answer. ABPersonViewController *personViewController = [[ABPersonViewController alloc] init]; personViewController.addressBook = addr; personViewController.displayedPerson = ABAddressBookGetPersonWithRecordID(addr, (ABRecordID)personID); personViewController.allowsEditing = YES; personViewController.personViewDelegate = self; personViewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@

Show custom contact information

帅比萌擦擦* 提交于 2019-12-06 16:05:57
So I have an MKMapView and I have a pin on it with a disclosure button. I want the user to be able to tap the disclosure button and the navigation controller to push a new view controller. But I want that new view controller to look like the contacts viewController that comes standard in the contacts app. I need it to display custom contact information because the contact will not be in the users contacts. I have been playing around with ABPerson, but I can't figure it out. I want that contact page to look exactly like the standard page. This is what I've been playing with:

iOS7 - ABPersonViewController, editing mode

孤人 提交于 2019-12-05 13:32:24
问题 Apple features a nice comprehensive and small example, "QuickContacts" (developer.apple.com/library/IOs/samplecode/QuickContacts/Introduction/Intro.html), outlining the basic usage of the Address Book UI Framework. - The downloadable sourcecode works as described (once you add a person named "Appleseed" to your addressbook or change the person-name in line 246 (of QuickContactsViewController.m) to something that already exists in your addressbook). Question: How can we modify the function -

iOS7 - ABPersonViewController, editing mode

血红的双手。 提交于 2019-12-04 01:53:42
Apple features a nice comprehensive and small example, "QuickContacts" ( developer.apple.com/library/IOs/samplecode/QuickContacts/Introduction/Intro.html ), outlining the basic usage of the Address Book UI Framework . - The downloadable sourcecode works as described (once you add a person named "Appleseed" to your addressbook or change the person-name in line 246 (of QuickContactsViewController.m) to something that already exists in your addressbook). Question: How can we modify the function -(void)showPersonViewController function in such a way that the ABPersonViewController "picker" is