Questions tagged [addressbookui]

The Address Book UI framework for iOS provides controllers that facilitate displaying, editing, selecting, and creating records in the Address Book database.

The Address Book UI framework is a framework for iOS () that provides controllers that facilitate displaying, editing, selecting, and creating records in the Address Book database.

External resources:

81 questions
1
vote
1 answer

What to set displayedPropertyKeys for CNContactPickerViewController in ios9

For lower than ios9, I used to write picker.displayedProperties = @[@(kABPersonEmailProperty)]; For ios9, what will be the displayedPropertyKeys ( picker.displayedPropertyKeys = @[@(????)]; ) Note:- picker is…
pkc456
  • 8,350
  • 38
  • 53
  • 109
1
vote
1 answer

Swift How can I remove these button programmaticaly or change their action when tapped?

In my application I have to remove this two kind of buttons or give them another function. There were 3 days reading the net and I can't even find how they are called. So to the question: How can I programmaticaly remove them, access them, change…
Hristo Atanasov
  • 1,236
  • 2
  • 18
  • 25
1
vote
1 answer

Null value returns from AddressBook framework in swift

In my swift app, I am retrieving AddressBook contacts from AddressBook framework. Contacts are retrieved successfully except the following case. Case 1: If I save a contact number alone without contact name to AddressBook, contact is successfully…
McDonal_11
  • 3,935
  • 6
  • 24
  • 55
1
vote
1 answer

How to prevent crash when selecting specific contact using AdressBookUI

I'm getting crash on this line. phoneNumber = CFBridgingRelease(ABMultiValueCopyValueAtIndex(numbers, index)); If the first phone number is selected I get index of 1 which is wrong. It should be 0 and therefore choses wrong number. If I select…
user1898829
  • 3,437
  • 6
  • 34
  • 62
1
vote
0 answers

- (void)peoplePickerNavigationController:didSelectPerson:property:identifier: is not returning correct identifier

I am developing an iPhone app that opens the user's address book, it fetches the phone number of a person that user has selected from phone book. In case if the Address Book has a person having 2 or more phone numbers and user deletes one of the…
Shyam
  • 417
  • 4
  • 16
1
vote
2 answers

How to extract name from a contact in iOS?

I have picked up a contact from the address book Now I need to display the name to the text view UI in the same view controller. How to extract the name from the ABRecord? This is my code. @IBAction func addContact(sender: AnyObject) { var…
Krishna
  • 673
  • 3
  • 6
  • 21
1
vote
1 answer

IOS: Is there an easy way to format a contact's available names into a string the way the user prefers?

I need to display some sort of user friendly string that identifies a person from their address book record. Since the person records can have any combination of first name, last name, nickname, middle name and there can be any combination of user…
Andreas
  • 2,665
  • 2
  • 29
  • 38
1
vote
1 answer

iOS: Address Book not importing mobile phone for certain contacts

I want to get the phone number for a selected contact from the address book and then call that number, yet for some contacts this is achieved, while for others the returned phone number is NULL! I checked in my phone to see differences between 2…
Gina
  • 89
  • 6
1
vote
1 answer

iOS get last 10 messaged contacts

Is there a way to get the last 10 messaged(sms) contacts in your app? I want to be able append a list of favs or the most recent messaged contacts to my app. I have looked into NSNotification center and couldn't seem to find a way for this. Is…
Joe Saad
  • 1,940
  • 3
  • 22
  • 32
1
vote
2 answers

Crash on second address book (contacts) lookup

Update: I believe the problem lies somewhere in how I am storing the reference to ABRecordRef. I am currently just hanging onto the value as delivered to peoplePickerNavigationController:shouldContinueAfterSelectingPerson:property:identifier: and…
devios1
  • 36,899
  • 45
  • 162
  • 260
1
vote
1 answer

Can't back out of ABUnknownPersonViewController when adding person

I'm having an issue. ABUnknownPersonViewController is embedded in a navigation controller at the top view, however, I'm not using the navigation bar in my app. When pushing to the ABUnknownPersonView, I don't get the navigation bar or the back…
1
vote
1 answer

EXC_BAD_ACCESS when using an ABPersonViewControllerDelegate

I have an iOS app that shows a list of contact names in a UITableView, and displays a contact with ABPersonViewController when a cell is tapped. This project uses ARC. If I associate an ABPersonViewControllerDelegate object, the app hits an…
1
vote
0 answers

xcode: sigsegv crash with AddressBookUI

I have an error exc_bad_access (sigsegv) but I cannot understand why. The crashlog is not very informative. Can somebody help me? It seems to me that the error occurs when the app starts and loads the AddressBookUI component in order to show the…
1
vote
0 answers

How to refresh PeoplePicker after deleted contact? iOS

I implemented a ABPeoplePickerNavigationController and ABPersonViewController. I did however, add the peoplepicker to a tabbarcontroller, it is no longer presented modally. The tabbarController keeps a reference to the controller. I added a big red…
1
vote
0 answers

ABPersonViewController not locating address on map

Any ideas as to why presenting an ABPersonViewController with its delegate won't locate an address of a selected person on the map? Currently, the app just quits to Maps and stays there zoomed out. The code for the ABPersonViewController delegate…
Nico
  • 253
  • 1
  • 3
  • 13