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

Addressbook Modified Date in Xcode

I am creating an application in which I used to update contacts from sqlite database on some rewrite actions. I used to fetch contacts from Addressbook of iPhone on user's permission everytime user logged in and insert it into database on Main…
user366584
  • 1,016
  • 1
  • 16
  • 34
0
votes
2 answers

Accessing iPhone call history on iOS

Is there any way to access the last time an ABAddressBook contact was accessed, interacted with, called, miss-called, etc. I'm aware of the ABPerson properties, specifically kABPersonModificationDateProperty. But I was wondering if there any way of…
theDuncs
  • 4,649
  • 4
  • 39
  • 63
0
votes
2 answers

Printing address book to console with NSLog

I'm using this in my viewWillAppear: to print all my contacts names and numbers to my console. - (void)viewWillAppear:(BOOL)animated { CFErrorRef error = nil; // Request authorization to Address Book ABAddressBookRef addressBookRef =…
Chisx
  • 1,976
  • 4
  • 25
  • 53
0
votes
2 answers

Fetching array of contacts from ABAddressBookRequestAccessWithCompletion() gives nil

I am trying to print out all of my phone's contacts to the console, using NSLog(). Currently this code is just printing (null). .h @property (nonatomic, strong) NSMutableArray *contactsObjects; .m @synthesize contactsObjects; //lazy instantiation.…
Chisx
  • 1,976
  • 4
  • 25
  • 53
0
votes
1 answer

Store users contacts in NSMutable array after access is granted for address book

I'm using this in my viewWillAppear: to ask the user for permission/access(as apple requires) to their address book. When they have allowed access, they can proceed to an "invites" page, where they can browse through (their own)contacts that already…
Chisx
  • 1,976
  • 4
  • 25
  • 53
0
votes
1 answer

iOS How should I open phonebook through coding

I am doing one project in that I am sending messages to multiple user. When I am composing message I took one textfield for enter contact. When I click on contact textfield I want to open phone contact (like In Phone default compose message view how…
Raj
  • 637
  • 13
  • 32
0
votes
0 answers

Mysterious Loading Time of UITableView

For some reason, my app seems to take forever when I try to perform a segue. The mysterious loading time only appears, after I request permission for the AddressBook - if the Permission is already granted, there is no issue at all. So, before…
Martin Lang
  • 355
  • 1
  • 3
  • 11
0
votes
1 answer

Creating a Contacts application -- What can I do to handle email/phone numbers better?

My application ties into the Addressbook framework for iOS, and I'm grabbing contact information. firstname lastname company name home email work email home phone work phone cell phone I need to expand on what information I'm grabbing. The issue…
Envin
  • 1,463
  • 8
  • 32
  • 69
0
votes
1 answer

ABAddressBookSave taking a very long time

I am trying to save the unsaved contacts through ABAddressBook using the following code: CFErrorRef error = NULL; if (ABAddressBookHasUnsavedChanges(addressBook)) { ABAddressBookSave(addressBook, &error); } else { …
Sandeep Kumar
  • 611
  • 6
  • 7
0
votes
1 answer

How to fetch the only iPhone contact list in ios7?

Please tell me how to fetch only iPhone contact list in ios7. When I login with facebook the facebook contact list has been imported in contact list so I just want iPhone contact mobile list number?
Mahesh kumar
  • 278
  • 4
  • 15
0
votes
1 answer

iOS- How to get the permission to the location and contact information

My app uses the location as well as the contacts. They are the bread and butter of my app. If the user does not allow both or any one of the accesses, the app will malfunction. I recently came to know that the dialog popup which pops up when the app…
0
votes
2 answers

Modifying Birthday in Contact Info

I'm trying to modify contact data, but I'm looking for a specific case. Is it possible to modify the birthday entry in a contact's data? If so, how can I go about this? I haven't been able to find anything on it...
muttley91
  • 12,278
  • 33
  • 106
  • 160
0
votes
1 answer

Authorizing my app to retrieve contacts causes it to crash the first time

Whenever a user in my app first accesses the app, this code below checks to see if the app is authorized to get the contacts from the device. If the user needs to allow it, and the user accepts, the app crashes with a SIGSEGV error. The next time…
Envin
  • 1,463
  • 8
  • 32
  • 69
0
votes
1 answer

Boldify correct part of contact's name in iOS's AddressBook?

I'm using AddressBook to get an array of all records, and then displaying the names in a UITableView. My question is, how can I baldify the correct part of the full name, like in the Contacts app? I could create a huge number of if statements, but…
Sam
  • 79
  • 1
  • 1
  • 7
0
votes
2 answers

Trying to create a form to add a contact to the device -- what do I do with empty fields?

I have a simple form that is only taking four fields right now (I'll add in more later) First Name Last Name Home Email Work Email I only want to save items that have a value as a new contact. Right now, if I don't enter in a value, then in the…
Envin
  • 1,463
  • 8
  • 32
  • 69