Questions tagged [abaddressbook]

The ABAddressBook opaque type provides a programming interface to the Address Book — a centralized database used by multiple applications to store personal information about people. Available on iOS 2.0 or above , and Mac OS X

The ABAddressBook opaque type (whose instances are known as address books) provides a programming interface to the Address Book—a centralized database used by multiple applications to store personal information about people. The Address Book database also supports the notion of a “group” containing one or more persons. People may belong to multiple groups, and groups may also belong to other groups.

The ABAddressBook opaque type provides functions for creating references to the Address Book database, saving changes, discarding changes, and registering for changes made externally (by other threads or processes) to the database.

812 questions
0
votes
3 answers

How to open Edit Contacts Screen for Specific Contact

I am working on a iOS Application in which I have to add contacts in Address Book. I want to open Edit Contact Screen Whenever user Tries to add duplicate contact. But I don't know how to do that.Currently I am only able to show a message only. I am…
Rahul
  • 5,594
  • 7
  • 38
  • 92
0
votes
1 answer

get all iphone Contact in ios Application with iOS 7

I am developing an application in which I want to get all contacts from my iphone including detail (First Name, Last Name, Email and Mobile Number). The deployment target of application is iOS 7 and later. I had tried a below code but its not…
Aarti Oza
  • 1,134
  • 2
  • 14
  • 31
0
votes
2 answers

How to run code in background ? using dispatch_async how it works?

i'm very new to Swift.I have following code which works perfectly. i.e. I'm fetching contacts from PhoneBook and updating into sqlite successfully. My requirement I want to run code in background i.e. in my following code what i'm doing is whenever…
Shrikant K
  • 1,988
  • 2
  • 23
  • 34
0
votes
1 answer

ABAddressBook: Is it possible to fetch the name of the Source?

I'm developing an app that has to retrieve all the contacts from the Address Book and display them according to the source (Gmail, iCloud, Outlook, Facebook ecc). I've already looked up all similar previous answer on this topic: has anybody found an…
0
votes
1 answer

How to get creation date of contact Using AddressBook in iOS

I have to export iOS device contact data and filter using "contact creation date" .Is it possible to do using Objective C ?
0
votes
1 answer

Getting array of user's contacts in iOS 8

I've written the following code for getting a user's contacts with CNContact module in iOS9. What would the equivalent code be for iOS8, as I realize that the Contact module is a new addition for iOS9 CNAuthorizationStatus status = [CNContactStore…
user3298872
  • 231
  • 2
  • 10
0
votes
1 answer

Permission alert to access user's address book does not halt execution

I have a button to import contacts from the user's address book. When they tap the button for the first time, my code returns a bool indicating whether user has granted permission or not. If permission is granted, then the contacts are imported and…
Aaron
  • 6,466
  • 7
  • 37
  • 75
0
votes
2 answers

Issue regarding retrieving all email id's from address book in iphone

I am newbie to Address book programming. I want to retrieve all email id's from address book.The issue is below code gets the all data for one record(one person). but When i add more than one contact in address book. it crushes without showing any…
sathish kumar
  • 1,061
  • 6
  • 16
  • 31
0
votes
1 answer

New contacts created by my app appear only in the app - and not in the iOS contacts app

In my iOS app, I've created a few new contact using ABAddressBook API. I can see them in my app when scanning the contacts (persistently, even after closing my app and relaunching it). However, I cannot see them in Apple's contacts App. What could…
TheRennen
  • 549
  • 4
  • 16
0
votes
1 answer

Address Book Person View in OS x not working after setHidden to Yes. Why?

I am using AB Person View in OS x application , it is working fine , but when i hide it like [self.abpersonView setHidden:YES]; and show it again by calling [self.abPersonView setHidden:NO]; it appears but its not even scrollable and clickable. I…
Hassan Malik
  • 559
  • 6
  • 20
0
votes
0 answers

How to remove this error "implicit declaration of function ABMultiValueAddValueAndLabel is invalid in c99" in xcode 7?

I am using ABMultiValueAddValueAndLabel(PhoneValue,(__bridge CFTypeRef)mblNum.number,kABPhoneMobileLabel, NULL); but its giving me error. How to overcome this? I am developing an app for OS x.
Hassan Malik
  • 559
  • 6
  • 20
0
votes
2 answers

ABAddressBookGetPersonWithRecordID Crashes my App

The app I'm currently working on has to retrieve the ABRecord of a contact using a delegate, since the table for all the associated contacts of an object is in a container view. So far everything works, the only problem is that when I try to…
karl_m
  • 85
  • 9
0
votes
1 answer

iOS9: contacts do not synchronise in iCloud

Contacts saved by my app in iOS9 did not synchronise in iCloud. They are visible in the Contacts app on the device I saved to, but were not duplicated to iCloud.com and other iOS devices. The code hadn't changed since iOS6, and the same build worked…
Peter Johnson
  • 3,764
  • 1
  • 23
  • 27
0
votes
1 answer

Sort ABMultiValueRef(kABPersonPhoneProperty)

Well, to get phones property with ABAddressBook, I use a loop. EDIT : code I've tried : ABMultiValueRef phones = ABRecordCopyValue(contactPerson, kABPersonPhoneProperty); for (NSUInteger j = 0; j <…
Vjardel
  • 1,065
  • 1
  • 13
  • 28
0
votes
1 answer

Extract entire addressbook name & number from ABperson objective c iphone

I need to know how to extract everyname & number from the address book in xcode for the iphone. I need to have the name and number in the following format: John Doe:000000000000000 Jane Doe:000000000000000
user393273
  • 1,430
  • 5
  • 25
  • 48