cncontactstore Questions
1
I would like to store data in the contact store that is part of CNContact. Is there a property of NSObject or CNContact that I can store the contents of a Data structure or NSDate object? I would l...
Jarad asked 27/9, 2022 at 0:43
7
This seems to be specific to iOS 13.1, as it works as expected on iOS 13.0 and earlier versions to add a contact in CNContactViewController, if I 'Cancel', the action sheet is overlapping by keyboa...
Unhorse asked 1/10, 2019 at 6:3
1
New in iOS 13 are a bunch of history-related classes such as CNChangeHistoryEvent and CNChangeHistoryFetchRequest. There's no documentation and they are not mentioned in any WWDC 2019 video that I ...
Incur asked 12/10, 2019 at 19:46
3
Solved
I have an app that has worked perfectly well with the CNContacts framework all the way up to IOS 12. I'm currently testing it with IOS 13 beta and its completely broken. I've checked the contacts p...
Caroleecarolin asked 10/8, 2019 at 12:22
2
Solved
I am using this code to fetch contact image from device but its not printing any output.
if contact.isKeyAvailable(CNContactImageDataKey) {
if let contactImageData = contact.thumbnailImageData {...
Bullish asked 19/4, 2017 at 9:51
2
I need the identifier of a newly created contact directly after the save request. The use case: Within my app a user creates a new contact and give them some attributes (eg. name, address ...) afte...
Behind asked 18/6, 2016 at 10:41
2
Solved
I don't know if this question qualifies to be here or not, but even after so much of research, I could not find a suitable guide for this question. I hope I get an answer here.
I see that all the ...
Chondro asked 25/10, 2017 at 9:11
3
I am able to observe the CNContactStoreDidChangeNotification when the contact database is changed while the app is in background state. I am pretty sure that only one observer was added to NSNotifi...
Gomar asked 1/1, 2016 at 22:16
2
I need to get the number of all contacts on a user's device. The deprecation message on ABAddressBookGetPersonCount says:
use count of fetch results for CNContactFetchRequest with predicate = n...
Contemn asked 18/4, 2016 at 13:34
3
Solved
I'm trying to fetch localized phone label value using CNContact.My attampt so far:
NSError *error = nil;
CNContactFetchRequest *fetchRequest =[[CNContactFetchRequest alloc] initWithKeysToFetch:...
Presidentship asked 19/2, 2016 at 9:23
1
Solved
So I have this code which works fine, but only if you have specified a name in the predicateForContacts parameter.
func retrieveContactsWithStore(store: CNContactStore) {
do {
let predicate = CN...
Horrified asked 24/12, 2016 at 1:53
0
When the notification is posted for the CNContactStore has change, userinfo has three keys: CNNotificationOriginationExternally, CNNotificationSaveIdentifiersKey, and CNNotificationSourcesKey.
I c...
Morn asked 8/12, 2016 at 19:52
2
Solved
I'm trying to format a contact's name using the new CNContactFormatter. It looks like, I didn't fetch all needed name properties of the contact.
Terminating app due to uncaught exception 'CNProper...
Acclamation asked 28/10, 2015 at 6:8
1
Solved
My code crashes as soon as it tries to request access to the CNContactStore. Any ideas if this is a beta issue?
var addressBookStore = CNContactStore()
addressBookStore.requestAccess(for: .contac...
Airlike asked 7/7, 2016 at 8:55
1
When attempting to save a contact that has populated Social Profile data the following error is encountered: This is seen in iOS 9.2
Domain=CNErrorDomain,Code=500 "(null)"
UserInfo={CNKeyPaths=...
Millenarianism asked 5/1, 2016 at 0:35
1
I am migrating an application from the deprecated Address Book Framework to the new Contacts Framework. The application utilizes ABAddressBookRegisterExternalChangeCallback to be notified when anot...
Biography asked 22/3, 2016 at 9:49
1
i try to create and save a group with the Contacts Framework.
First the user authorize the App for contacts access.
A viewcontroller is presented and with a + button user shows an alertview with te...
Vow asked 5/11, 2015 at 18:33
1
© 2022 - 2024 — McMap. All rights reserved.