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

application crash on ios 11 when working with AddressBook framework?

I'm working on voip app. fetch contact work but when I want to make call, app crash. [ABSAddressBook contacts]: message sent to deallocated instance 0x1c1478180 warning: could not execute support code to read Objective-C class data in the…
0
votes
0 answers

Managing contacts in Swift

I'm attempting to manage a hidden contact group or container in iOS using swift. My initial thought was to create our own container, but I can't find code to do that. Can you create a container using CNContactStore or Address Book and mark it…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
0
votes
2 answers

Does AddressBook.sqlitedb on iphone maintain a timestap column to determine which contact records have been added or modified at what time?

Is there a way to determine which contact records has been modified or added to AddressBook.sqlitedb on IPhone. I mean I want my application to read the AddressBook.sqlitedb and determine which contact records has been added or modified to the…
khalid
  • 1
  • 1
0
votes
1 answer

contactViewController didCompleteWith contact is nil

I'm trying to add a new contact copying an existing contact's values. if let mutableContact = self.editingCard?.contact.mutableCopy() as? CNMutableContact { let editCardViewController = CNContactViewController(for: mutableContact) …
Dunes Buggy
  • 1,779
  • 1
  • 21
  • 41
0
votes
1 answer

Show Blocked Contacts using ABAddressBook

This question is for iOS 10 and Xcode 8. I know how to get user local address book contacts using ABAddressbook and show them in my app. What I was trying to do next are two things Show the user what contacts he/she has blocked himself Try see if…
Sam B
  • 27,273
  • 15
  • 84
  • 121
0
votes
1 answer

iOS ABAddressBook How to change existing phone number?

I want to check if contact exists and change its phone number if it does. I tried to do so and got exc_bad_access in the last line of code: if doesPersonExistWithFirstName(firstName: "Call Recorder", inAddressBook: adbk) { let…
BadCodeDeveloper
  • 455
  • 5
  • 24
0
votes
1 answer

Rely on ABAddressBook & EKEventKit or roll my own?

I'm about to embark on an app that will require scheduling of events for "clients" among other things. I've worked with ABAddressBook a bit on a previous project (year ago) so knew then its advantages & limitations. No experience with Event Kit. I…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
1 answer

App freezes when requesting access to addressbook

func getContacts() { let store = CNContactStore() if CNContactStore.authorizationStatus(for: .contacts) == .notDetermined { store.requestAccess(for: .contacts, completionHandler: { (authorized: Bool, error: NSError?) -> Void in …
Chris Mikkelsen
  • 3,987
  • 9
  • 29
  • 41
0
votes
2 answers

Add Address Book Framework for iOS 8 with Xcode8

I am working on application in which I need to support iOS 8 onwards devices. Application used iOS contacts So I need to add both ABAddress and contacts framework. I am facing a strange problem with Xcode 8 that ABAddressFramework not found at run…
Saurav Nagpal
  • 1,247
  • 1
  • 10
  • 27
0
votes
1 answer

Swift3: ABSearchElement crash

I have just updated my Swift 2 project to Swift 3 and I'm having a problem with a query on the AddressBook: import Cocoa import AddressBook let firstName:String = "John" let lastName:String = "Appleseed" let addressBook =…
iphaaw
  • 6,764
  • 11
  • 58
  • 83
0
votes
1 answer

Alternate for ABAddressBookRegisterExternalChangeCallback

As ABAddressBookRegisterExternalChangeCallback is deprecated in iOS 9.0 and later. Is there any alternative avaiable for getting contact change or if a new contact is added in the address book. Please provide the implementation if possible in…
Pritam Kadam
  • 3,203
  • 4
  • 19
  • 41
0
votes
1 answer

iOS: Crash when try to import contacts using ABAddressBook()

I'm trying to import vcf file into my address book using ABAddressBook. First, I read the file, and get NSData: NSString *documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]; NSString *fileName =…
Xin
  • 47
  • 7
0
votes
1 answer

Update contacts from address book for the contacts updated while the app was terminated

I have used AddressBook to fetch contacts and store it in Core Data. I also register for ExternalCallBack which is working perfectly fine. The problem is that I want to update contacts in CoreData when the app becomes active if any contact is…
Manan Devani
  • 434
  • 3
  • 15
0
votes
1 answer

Objective-C Cannot Initialize a Variable of Type CFStringRef in .mm extension

I'm importing contacts from iPhone contacts in my class and then I made the extension of my file to a c++ (because I need to use a library that requires it to be .mm) and then an error occurred. code: CFStringRef phoneNumberRef =…
Jongers
  • 595
  • 1
  • 9
  • 29
0
votes
1 answer

Memory leak in ABAddressBook iOS 8 in Swift

I am implementing ABAddressBook in iOS 8 and I started by creating a sample project to get going. I created the project using the Single View Application template. In the viewDidAppear of the ViewController.swift ViewController I added the code…
lostAtSeaJoshua
  • 1,695
  • 2
  • 21
  • 34