I have a view controller that can be swiped down to get out of. The problem is, I need the user to get out of the view controller by pressing a bar button item that goes to an unwind function. The bar button items are hidden by the search controller. I need to either make a way for the user to hide the search controller or put code that triggers… Show more
I am creating an iOS app using Xcode and Swift that uses INShortcut. After the user has created a shortcut based on a user activity using the INUIAddVoiceShortcutViewController, how would I modify the shortcut or actually the user activity in the shortcut using code without showing a user interface and update the shortcut?
What is the simplest way to completely empty contents of Core Data database and start like a new database with the same data model as emptied database?
CNSaveRequest.addMember(_:to:) CNContactStore.execute(_:) The operation couldn’t be completed. (CNErrorDomain error 2.)
I am getting an error adding a contact to a group. I wonder if there are restrictions I am overlooking. Does the contact have to be in the container that the group belongs to? Can the contact be a member of more than one group or more than one container? How do I figure out what the error means? The documentation for CNErrorDomain doesn't give… Show more
I'm trying to remove redundancy of URLs to my application. This works well, if a single contact has several URLs. But if there are linked contacts, typically save operation fails with the message "The operation couldn’t be completed. (CNErrorDomain error 2.)" Any advice, how to work this around? Doesn't it work with unified contact? If remove… Show more
I have this code that saves records into CloudKit in iOS in an iPhone 8 Simulator, but not all records are there when I check the database after the save code succeeds in saving 688 records whether 'maxNumberOfRecordsToModify' equal 50 or 400. I am sure I did everything correctly. let privateDatabase =… Show more
How do I check data in CloudKit for an actual working app on a working iOS device? I am able to log in to CloudKit Dashboard with the Apple ID, but it shows no containers even after I have installed the app on a device using that Apple ID.
When I try to sign in to iCloud in iPhone 8 Simulator, I get an error saying that the user name or passord is incorrect. I am sure it is correct. I tried it with two different accounts. I am able to use the two Apple IDs to sign in to Apple.com.
I have code to batch delete records from the private database in CloudKit, but it's not working. (I also noticed that the records I saved are not remaining.) It looks like some of the records that the code is supposed to delete is actually deleted, but some are not. When I run the code again, there exists records still, but about one less the… Show more
I get a code-time yellow warning message in Xcode that says: 'unarchiveObject(with:)' was deprecated in iOS 12.0: Use +unarchivedObjectOfClass:fromData:error: instead ... when I use the following code: let oldUbiquityIdentityToken = NSKeyedUnarchiver… Show more
Load more items
I signed out of iCloud in the iPhone 8 Simulator, and it has shown the screen saying "Removing iCloud data..." showing that it's working for a few hours now. When it did this before, I shut down the Simulator and when I opened the Simulator again, it shows that it never logged out of iCloud.