addressbook

Is the newly added 'My Card' that automatically shows up in IOS9 a reliable way to get a users phone number?

老子叫甜甜 提交于 2019-11-28 14:21:09
Am I correct that with a address book permission we should be able to pretty reliably get a users phone number if they have given address book permissions via the new "My Card" contact that seems to be automatically added to your addressbook when you download IOS9? I always wanted to do a find friends but i did not want to force users to type/verify their number....this seems to be a solid work around for ios9 users. I am currently dealing with the same issue but unfortunately it seems that this is not possible according to Apple. "Presuming that you’re working on iOS, there’s no programmatic

Find Favorite contacts from the iOS Address Book API

一笑奈何 提交于 2019-11-28 11:05:50
Is there a way to find Favorite contacts from the iOS Address Book API? I'm referring to the contacts a user places in his Favorites tab in the Contacts app. Favorites are stored inside Phone.app, not inside the Address Book database itself. You can't access other app's sandbox on a non-jailbroken iPhone, so unfortunately the answer is no. Also, it would be pretty bad for privacy if any app could see your favorite contacts. It's already bad that it can access entire address book without asking you. Filip is correct, you cannot access the list of favorite contacts on iOS via a public, app-store

How to add a contact to the iPhone's Address Book from a Web Page?

和自甴很熟 提交于 2019-11-28 05:21:13
In the desktop Mac world, if I were to click on a link in a web page which linked to a VCF file, this file would be opened in the Address Book application. In the iPhone world, however, doing that results in the message "Download failed. Safari cannot download this file" being displayed. So, my question is, is it actually possible to add a contact to your iPhone's Address Book from a web page? I have both the original VCF file and an hCard microformatted version of the data available to me, so the solution does not have to be tied to downloading the original file - I'm able to reprocess the

IPhone SDK - How to serialize ABRecord?

泄露秘密 提交于 2019-11-28 04:24:04
问题 I'm new in iPhone development, can you advice me how to serialize AdressBook records? I have read stackoverflow - How do I serialize a simple object in iPhone sdk, but I still have questions: should I extend ABRecordRef? Is it possible? Or should I implement own class NSObject? (similar question was on Mac forums and was left without answer) Thank you! 回答1: ABRecord is an opaque C type. It is not an object in the sense of Objective-C. That means you can not extend it, you can not add a

Generate vCard from AddressBook.framework

亡梦爱人 提交于 2019-11-28 04:01:22
I'm utilising the AddressBook.framework in my iPhone app, and I'd like to replicate something along the lines of the share feature in Contacts.app. This basically attach's a specific contacts vCard to an email. As far as I know, there is nothing in the documentation that mentions generating a vCard. Is this a case of generating one myself? Or is there something available that can help me? Totally agree with Dave DeLong's answer. Just want to add that since I simply wanted to create a vCard file (.vcf) and attach it to an in-app email action what I did was create a string, then a temporary file

iPhone multi-threaded AddressBook manipulation

╄→гoц情女王★ 提交于 2019-11-28 00:02:17
问题 I have been using the AddressBook api of the iPhone for some time now. But doing some refactoring to improve application performance I have decided to "reuse" the ABAddressBookRef returned by AddressBookCreate because I noticed there are large performance improvements doing that. However, I am getting EXEC_BAD_ACCESS errors now randomly, and I think the reason is in this "caveat" in the iPhone reference implementation: http://developer.apple.com/iphone/library/documentation/ContactData

Contact Address book crash on iOS 10 beta

≯℡__Kan透↙ 提交于 2019-11-27 22:03:26
When click on any contacts in address book (inside my app) it's crashing on iOS 10 beta and working fine on iOS 9 versions; This is the crash log *** Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not requested when contact was fetched.' *** First throw call stack: (0x1cf11a07 0x1c62af63 0x1cf1194d 0x246f0f4f 0x246c6a71 0x1ce355eb 0x1ce2e19b 0x246c69cf 0x246c6883 0x25e4a375 0x2538f283 0x254204ef 0x25420bb1 0xe9da97 0xe9da83 0xea2321 0x1cecf18f 0x1cecd477 0x1ce1e6bd 0x1ce1e549 0x1e54ebfd 0x21f961e3 0x21f90947 0x966c9 0x1ca9e507) libc++abi

How to add a contact from my app to the iOS address book

此生再无相见时 提交于 2019-11-27 21:26:14
问题 I would like to add the ability to save a contact (phone number, name, address and email) in the iOS address book by clicking on a button in my application! How can I do this? 回答1: Its so easy and follows below steps, First, you have import following frameworks, #import <AddressBook/AddressBook.h> #import <AddressBookUI/AddressBookUI.h Second, write the following code in your button action and modify the code according to your needs, NSString * addressString1 = [appDelegate getCurrentSummary]

How can I set a ringtone for an individual contact on Android?

可紊 提交于 2019-11-27 20:18:54
How can I apply a ringtone to only the selected contact? I have found a way to set the default ringtone that applies to all contacts, but that is not my goal. I want an application to have a button ("Apply ringtone to contact") that, when clicked, starts an activityForResult displaying a list of all contacts on the phone. When a contact is selected, the contact activity closes and returns with a URI to the contact. Then the app needs to apply the selected ringtone to that specific contact. The code for displaying and selecting contacts by an activity is already implemented and seems to work on

Setting Address Book image for a contact doesn't seem to work

旧时模样 提交于 2019-11-27 17:12:54
问题 I'm trying to set the contact image with the code below. I am not seeing any errors, and the image is not saved to the contact entry in the address book. Please help! I must be doing something wrong... - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { [abcontroller setDisplayedPerson:person]; UIImage *im = [UIImage imageNamed:@"image1.jpg"]; NSData *dataRef = UIImagePNGRepresentation(im);