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

Loading into map, multiple addresses of a single person in address book

I am loading a mapview, with pins. The pins drop on the location, based on the address of a person from the addressbook. If the person has one address, then the map is loading fine. BUt if he has multiple addresses, then only one address location is…
Xavi Valero
  • 2,047
  • 7
  • 42
  • 80
0
votes
3 answers

Memory leak when declaring NSString from ABRecordCopyValue

I am using the following line of code... NSString *clientFirstName = (NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty); The 'analyse' feature on Xcode is saying that this giving rise to a potential memory leak. I am not releasing…
Ben Thompson
  • 4,743
  • 7
  • 35
  • 52
-1
votes
2 answers

Resolve potential memory leaks

I am getting the following memeory leaks after running analyze tool in xcode //Getting memeory leak warning here "Potential leak of an object allocated and stored into 'phones' ABMultiValueRef phones = ABRecordCopyValue(ref,…
Zhen
  • 12,361
  • 38
  • 122
  • 199
-1
votes
2 answers

adding contacts to my table view ,

I have an import button and clicking that shows a contacts view. Then, from here I want to select the required contact name and add to my table view.
user604346
  • 23
  • 3
-1
votes
1 answer

Storing a record locator in the user's Address Book kABPersonInstantMessageProperty field

I have an app that uses the user's Address Book for contacts. I also have other information I wish to store on a per-user basis (per Address Book entry basis). I allow the user to import a single user, an Address Book group, or all of their…
Jann
  • 2,214
  • 3
  • 28
  • 45
-1
votes
1 answer

How to load latest contacts from iPhone using ABAddressBook when user press home button

I am loading contacts using ABAdderessBook framework, it is working fine. Suppose I have a 20,0000 contacts I am loading in tabelview. Suppose I pressed the Home button and add some contacts then how to get only those contacts?
-1
votes
3 answers

How to handle multiple properties on iPhone's addressbook?

The problem is that I always get runtime crashes at any method invoked at phones variable. At this version I get an error at 1 (ABMultiValueCopyValueAtIndex). If I'll comment this line, the code crashes at 2 (ABMultiValueGetCount). It looks like the…
Alistra
  • 5,177
  • 2
  • 30
  • 42
-1
votes
3 answers

How to pass data between two controllers in which one controller is abadressbook fetched in uitableviw

I created an ABAddressBook on a UITableView. Now, I need to pass the firstname, last name, etc. to next viewcontroller. I have to pass data using nsobject class ... in this project i have made Person class which has string properties of…
ios
  • 955
  • 1
  • 12
  • 35
-1
votes
2 answers

UIAddressBook in UITableView with NSObjectClass

I need to make a UITableView which fetches address book contents in it and also a UISearchBar which searches the address book contents. I need an implementation like this project http://www.appcoda.com/search-bar-tutorial-ios7/ But the problem is…
ios
  • 955
  • 1
  • 12
  • 35
-1
votes
1 answer

Crash when picking a contact from address book in Xamarin iOS 8

I have been experiencing a crash in my app when I select a contact from the address book in the simulator. I’m getting a similar crash when I use the QuickContacts sample. These are the steps after starting the QuickContacts app in the…
-1
votes
1 answer

How can I get string values out of an ABPersonRef / ABPerson?

This question arose while using [PKPayment billingAddress], which is listed as type ABRecordRef (but to be more precise, is of type ABPersonRef).
codeperson
  • 8,050
  • 5
  • 32
  • 51
-1
votes
2 answers

iOS:saving string data in array

i am developing contact list app so that i need to bring the contact data and stored in the tableview i did as below - (void)listPeopleInAddressBook:(ABAddressBookRef)addressBook { NSInteger numberOfPeople =…
-1
votes
1 answer

Is ABAddressBookRef an acceptable type for a property?

Is this syntax acceptable or is it not best practice? @property ABAddressBookRef myAddressBook;
-1
votes
1 answer

How Do I Obtain A User Selected Email Address From ABPeoplePicker?

Someone else here on Stackoverflow posted a way to obtain a user selected phone number from the contacts list. Could be done for email addresses and if so, how do I do it? Here is the code: -…
Kfeavel
  • 43
  • 1
  • 10
-1
votes
1 answer

Can ABAddressBook be Used by Multiple Thread on the same serial Queue?

This is the documentation in iOS 6 Users are able to grant or deny access to contact data on a per-app basis. To request // access to contact data, call ABAddressBookRequestAccessWithCompletion. This will not // block the app while the user…
user4951
  • 32,206
  • 53
  • 172
  • 282