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
13
votes
1 answer

iOS7 - ABPersonViewController, editing mode

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…
user2831473
  • 158
  • 2
  • 9
11
votes
5 answers

How is iPhone Contact app's detail View implemented

I would like to implement a view similar to the detail view of Apple's own Contacts app where it displays the name, phone number, note, etc. and its Edit mode. Can you dissect how the whole view is done? Is that view done with a UITableView or a…
Boon
  • 37,606
  • 51
  • 186
  • 296
4
votes
1 answer

How can I override the "Done" button in ABNewPersonViewController

I have a class that subclasses ABNewPersonViewController. As I understand, when the Done button in the navigation bar is clicked, the delegate method - (void)newPersonViewController:(ABNewPersonViewController *)newPersonViewController…
Xavi Valero
  • 2,007
  • 7
  • 41
  • 79
4
votes
1 answer

Iphone ABUnknownPersonViewController using allowsAddingToAddressBook = YES issue

Let me explain what i want to do first. In native Iphone in the Recents tab if you click on a contact not found in any addressbook you have an option to "Add to Existing Contact" After clicking on "Add to Existing Contact", a picker shows up and…
j2emanue
  • 51,417
  • 46
  • 239
  • 380
3
votes
2 answers

ABPersonViewController+delete

Can anyone help me enable a delete button in ABPersonViewController?
jeevanantham
3
votes
1 answer

iOS 10, XCode 8 Black camera screen when using ABPersonViewController and CNContactViewController

Using xcode 8, devices using iOS 9 and 10 I've got same problems like this Camera does not working with ABPersonViewController and CNContactViewController. It pops up with black screen and non of contained controls are working except cancel…
3
votes
2 answers

iOS8 bugs: ABPersonViewController does not display properties & back button

The following code works correctly in iOS7, but not in iOS8 (the variable recordID is set correctly): CFErrorRef error = nil; const ABAddressBookRef addressBook = (ABAddressBookCreateWithOptions (NULL, &error)); ABRecordRef contactRef…
Reinhard Männer
  • 11,202
  • 4
  • 45
  • 85
3
votes
2 answers

How to check whether all fields are empty in ABNewPersonViewController

I have a custom button in ABNewPersonViewController. I need to enable the button, only if any(at least) one of the fields in ABNewPersonViewController is edited. Is there any way in which I can check this condition, other than writing code to check…
Xavi Valero
  • 2,007
  • 7
  • 41
  • 79
3
votes
3 answers

Directly open ABPersonViewController in EDIT MODE DIRECTLY in iphone

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
iOSAppDev
  • 2,699
  • 4
  • 36
  • 72
2
votes
2 answers

ABNewPersonViewController delegate method doesn't get called when the button action is triggered

I am using ABNewPersonViewController. I am saving the Done button(rightBarButtonItem of ABNewPersonViewController) to another button, so that the delegate method - (void)newPersonViewController:(ABNewPersonViewController *)newPersonViewController…
Xavi Valero
  • 2,007
  • 7
  • 41
  • 79
2
votes
1 answer

ABPersonViewController "add to favorites" action strange behaviour

I'm using ABPersonViewController to show contact info. I want to allow user to perform standard actions, like Text message, Share contact, Add to favorites. When I tap Add to favorites, near the contact's phone becomes blue star - so, it seems like…
Dmitry Salnikov
  • 329
  • 4
  • 15
2
votes
2 answers

Customize ABPersonViewController

Is it possible to add custom UITableViewCell row in addition to built-in email, phone rows inside ABPersonViewController? I would like to add buttons like add, remove, etc in that cell, which will allow user to be added/removed into/from my…
2
votes
2 answers

Swift: Copy Information Selected by User in ABPersonViewController to Dictionary

I'm trying to implement the func personViewController(personViewController: ABPersonViewController!, shouldPerformDefaultActionForPerson person: ABRecord!, property property: ABPropertyID, identifier valueIdentifier:…
5813
  • 981
  • 2
  • 11
  • 27
2
votes
1 answer

iOS8 crash while redirecting to ABPersonViewController as [Not A Type retain]: message sent to deallocated instance

ABPersonViewController *personController = [[ABPersonViewController alloc] init]; personController.personViewDelegate = self; ABRecordRef person = ABAddressBookGetPersonWithRecordID(personController.addressBook, [recordID…
SwathiK
  • 354
  • 3
  • 13
2
votes
0 answers

ABPersonViewController with Custom Buttons in View

I want to add custom buttons to the bottom of my ABPersonViewController. I do not want to just enable allowsActions because I do not want the default behavior. Instead I have thought about 2 ways to do this: A. Create my own custom view controller…
Hutch
  • 9,280
  • 1
  • 20
  • 18
1
2 3 4 5 6