Post

Replies

Boosts

Views

Created

How to add words to dictionary in iOS for words the keyboard suggests and for voice dictation?
For iOS, is there any way to add words into the dictionary that voice dictation recognizes and to the dictionary that the bar on top of the keyboard uses, that shows suggestions for words? I would like to make an iOS app that uses Biblical words such as "thee" and "thou". Any ideas will be appreciated.
0
0
1k
Feb ’22
How would I store information in a CNContact object that the contact store would keep as persistent data?
I need to be able to identify a CNContact so as to associate it with a CKRecord in a iCloud private database. If I use a non-unified contact, would the identifier be unique across all existing iOS devices so that I could store the identifier property in a record in the user's iCloud private database to identify a specific contact? The documentation says that the identifier of a CNContact stored object is unique within the device. If I use a UUID value and store it in the iCloud private database to identify the specific contact, how would I match that with the contact? I would need to save that UUID value as part of the contact object as stored in the contact store. Is that possible without saving the UUID value in the notes property of the contact. It would be better if I could store the UUID value somewhere where the user could not access it and delete or edit it. Is there a way to make the notes property of a contact inaccessible to the user where even if he/she could see it, he would not be able to change it? I'm not very familiar with the hash and hashValue properties of NSObject object. Though unlikely, would one of those properties be able to identify a contact uniquely across all existing iOS devices so that I could store it in the user's iCloud private database in order to associate a certain record in that database with a specific contact?
0
0
549
Mar ’22
How do I run code in the background in iOS that will always run?
Is there a way to put code in iOS that is always watching in the background for the contact store to change? If I put it in my app, then the user can close the app, and the app won't receive notifications when the contact store changes? Is there an app extension I can use that would allow me to do this, whether that is the intent of the extension or not?
1
0
2.2k
Mar ’22
What to use instead of the deprecated ABAddressBookRegisterExternalChangeCallback(::_:) function?
I found information about the ABAddressBookRegisterExternalChangeCallback(::_:) function of the Address Book Framework, but that function has been deprecated, and only works with iOS 2.0–9.0. I don't see a function in the Contacts Framework that does what that function does. Is there some way that the Contacts Framework could do something that this function provided a solution for?
1
0
1.1k
Mar ’22
What do the different cases of the enumeration Data.Deallocator mean?
I'm having trouble finding explanations for the different cases of Data.Deallocator enumeration. It's used with the [init(bytesNoCopy:count:deallocator:) initializer to Data class] (https://developer.apple.com/documentation/foundation/data/1780455-init) Here's the different cases: Data.Deallocator. The cases are: custom free none unmap virtualMemory Anyone know a website that explains those cases briefly and simply? Or do you know what they mean off the top of your head?
3
0
460
Mar ’22
Is it possible to create an iOS app that controls the screen of another device remotely?
I'm starting to look into MDM and device management for my iOS app. I'm also wondering if there is any way to allow someone on a macOS or another iOS device take control of another person's iOS device to show them how to use their device and perhaps even take control of their device while the person using the controlled device watches what the the person in control of the device is doing so he can follow along. Is there something like this that Apple already has? Is it possible to do this? If it is possible to do this, can it be done in a commonly distributed device that anyone can install from App Store and not require any additional maintenance or extra setup? I think the word I'm thinking of is "supervised". I saw that word in another post. Is it possible for one device to give control over to another user on a different device without the first device being "supervised".
0
0
585
Mar ’22
Is there a way to cause my app or a background task start running automatically when the iOS device is turned back on after being turned off?
I think I'm only entertaining wishful thinking, but I hope it is possible to somehow cause my iOS app or a background task to start up when the iOS device starts up, like when it was turned off and then turned back on. Does even the user of the device have a way to do this in iOS? I saw some threads saying something like this might be possible using MDM or supervised devices or kiosk mode or guided access. Those all seem to require the user or administrators to do some setting up. I want my app or background task to be able to do what I mentioned right as it comes after it is installed from App Store.
1
0
516
Mar ’22
How do I make a link to a specific answer instead of the entire post?
How do I get the answer id of an answer in a thread? I would like to know how to create a link to a specific answer of a post so I can refer to a specific answer rather than to the top of the page of the post. I noticed one link went to this address - https://developer.apple.com/forums/thread/67535?answerId=195112022#195112022. That's where I learned about the "answerId" item.
2
0
670
Mar ’22
"Failed to prepare device for development." with Xcode 13.2.1 and iOS 15.4 device
I'm getting message "This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility." when I try to run an Xcode iOS project on my iPhone 8. I'm using Xcode 13.2.1 and iOS 15.4 on my iPhone 8. This post in this forums gives the solution to restart the iOS device and I did that and also restarted the mac. My Mac has macOS Monterey 12.3. My Xcode, Mac, and iPhone 8 all have the most recent updates. That post gives an answer for the same problem but with iOS 15.2. I have recently changed settings in my iPhone 8 in Accessibility. Could that affect anything?
4
0
4.2k
Mar ’22
Why are there no recent device logs
When I go to devices and simulators with my iPhone 8 plugged into my Mac, and then open device logs, I don't seen any recent logs. The last one was from november last year. Why are there no more recent logs? I went to my iOS device and searched for "log" in Settings, but there doesn't seem to be any setting to turn on logging. I also can't find any settings when I search for "developer" in settings. I thought I saw something in iOS that enabled me to send reports to Apple automatically on my iOS device. I don't know if that's what I really want.
1
0
861
Mar ’22
What does @MainActor mean
I'm trying to figure out what @MainActor means in this definition of UICloudSharingController in Apple Documents found here. Here's what it says: @MainActor class UICloudSharingController : UIViewController I couldn't find much information on Google. This Apple Documentation is the closest thing I found. Is this what i need? Here is the declaration to the MainActor class: @globalActor final actor MainActor
1
0
1.6k
Mar ’22
How do I reserve a name for my iOS app so that no one else can use it?
At what point in the iOS development process using Xcode is my app name reserved on App Store? Last I remember when I published my iOS app for sale status on iOS App Store at App Store Connect I had to change my published app name because there were already other apps using that name. I think that was the name that was actually showing on the App Store, and not the name I put in the Product Name field when I first create the project in Xcode. I just tried to validate my iOS app and it wouldn't validate because it said there was already an app with that "App Name". I take it that means the name I put in the Product Name field when I first created the project, if I don't change it later. Is that correct? So if my iOS app project validates, does that mean I have that App Name reserved so that no one else can use it? How do I reserve a name for my iOS app so that no one else will get it once I reserve it?
0
0
960
Mar ’22