Questions tagged [abpersonviewcontroller]

ABPersonViewController is an iOS class that provides a view for displaying a person record.

ABPersonViewController is a public class provided by Apple in iOS 2.0 and newer, which implements a view to display an ABPersonRef record. It displays all of the public fields of an ABPersonRef, the contact photo, and provides actions (such as viewing a map when tapping on a street address).

82 questions
2
votes
3 answers

Segue to ABPersonViewController in Storyboard

I am trying to segue to a ABPersonViewController from a button in the Storyboard. But if I do that the screen is completely black. If I use a IBAction for the button and use the following code it works: ABPersonViewController *person =…
2
votes
1 answer

Is it possible to update linked contacts from my iOS app using ABPersonViewController?

My app allows the users to import contacts from their address book and store them in our CardDAV server. I'd like keep the contacts on our CardDAV server with all other linked contacts in the address book (iCloud for example) in sync. When a…
2
votes
1 answer

Handling click events inside ABPersonViewController

I am implementing - (BOOL)personViewController:(ABPersonViewController *)personViewController shouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier delegate in my…
Xavi Valero
  • 2,047
  • 7
  • 42
  • 80
2
votes
1 answer

Cannot dismiss ABPersonViewController in iPhone

How can I dismiss the ABPersonViewController? Here is my code #pragma mark - Edit Record Method -(void)btnEditContactTapped:(id)sender { // Fetch the address book ABAddressBookRef addressBook = ABAddressBookCreate(); ABRecordID…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
1
vote
1 answer

Can I create a custom nib for UnknownPersonViewController without using an "undocumented api"?

I'd like to add some custom buttons to an ABUnknownPersonView. Can I use initWithNibName:bundle: in my ABUnknownPersonViewController to load a custom view that I've created in IB, while not using an "undocumented api?" And if I do, how can I make…
Andrew
  • 8,363
  • 8
  • 43
  • 71
1
vote
1 answer

Show custom contact information

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…
Andrew
  • 3,874
  • 5
  • 39
  • 67
1
vote
1 answer

ABPersonViewController not opening in editable mode

ABPersonViewController is not opening in editable mode. When I use break point then control is not reaching the delegate method. Where is the problem? Here is my code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath…
user720235
  • 85
  • 1
  • 11
1
vote
1 answer

ABPersonViewController does not dismiss the keyboard

I have a strange thing happening in one of my applications. I am presenting an ABPersonViewController within an UINavigationController. The code is pretty straight forward: ABAddressBookRef book = ABAddressBookCreateWithOptions(NULL,…
CristiC
  • 22,068
  • 12
  • 57
  • 89
1
vote
2 answers

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

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
vote
1 answer

Is it possible to create a temporary ABAddressBook Database in iOS?

I would create a temporary ABAddressBook Database in iOS which doesn't interact with the "normal" ABAdressBook database. I would just like to do it to use the ABPersonViewController. My contacts data is stored in an sqlite.swift database.
Philipp Januskovecz
  • 868
  • 5
  • 14
  • 25
1
vote
1 answer

iOS9 native dialler is shown before shouldPerformDefaultActionForPerson is called

I just noticed different behaviour in my app after upgrading to iOS9. I have a view that shows the device contacts of the phone. My code is the following: if (... == YES) { ABRecordSetValue(aContact, kABPersonEmailProperty, email,…
cateof
  • 6,608
  • 25
  • 79
  • 153
1
vote
1 answer

Cant get right data from ABPersonViewController if there is linked contacts

I have a contact with linked contacts. So when I show this contact with ABPersonViewController is has original emails and emails from linked contacts. When I select linked email (John-appleseed@mac.com) then delegate method calls: -…
Kirill Pyulzyu
  • 381
  • 2
  • 11
1
vote
0 answers

peoplePickerNavigationController didSelectPerson not called for Linked Contacts

When a user taps a Linked Contact's property using the ABPeoplePickerNavigationController - neither- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:(ABRecordRef)person…
YogevSitton
  • 10,068
  • 11
  • 62
  • 95
1
vote
0 answers

Ios 8: Determine the destination app when my app goes to the background?

I override my app's openURL-method to know when we're about to leave the app from an ABPersonViewController, the reason being that that class doesn't notify its delegate on all of the actions it presents to the user. If it did everything would be…
Andreas
  • 2,665
  • 2
  • 29
  • 38
1
vote
1 answer

ABPeoplePickerNavigationController search bar color and doesn't get changed

I'm trying to change the color of the search bar orange and the bar tint color to white when a contact get selected. No matter what I've been trying, nothings get changed and it's stuck like this (back button isn't white). in…
Idan Moshe
  • 1,675
  • 4
  • 28
  • 65