I noticed that when there is a generic class, there is a , which I decided must use T for "Type". What does the S mean in . I see it in the function definition for the instance function initialize(from: S) -> (S.Iterator, UnsafeMutableBufferPointer.Index) of UnsafeMutableBufferPointer.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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?
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?
Sometimes it takes a long time for iCloud to begin syncing. Is there code I can use to cause iCloud to begin syncing when I want it to?
Is it possible to observe the iOS Contacts app or the contacts store of a device using key-value observing? How would I find out? I can't find information on it when I do a search on Google.
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?
I'm trying to enable my app to receive a notification each time the event store changes.The documentation for EKEventStore at https://developer.apple.com/reference/eventkit/ekeventstore shows the following:static let EKEventStoreChanged: NSNotification.NameWhat does that mean? How do I use that information?
I have an iOS app already on the App Store. I just changed my business to an LLC. I would like to change the bundle identifier in the next version of the app to reflect my new website address.
What would happen if I did this? I want to decide whether it would be worth the trouble.
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.
Hi. Is there a way to programmatically allow my iOS app to prevent all calls from making a sound or causing the iPhone to vibrate, other than unselecting Emergency Bypass from each contact? If not, is there any way to temporarily or permanently unselect Emergency Bypass on any given Contact? If not, is there any way of programmatically shutting off the iPhone?
Is there a way to use CallKit on the current service the device is subscribing to, such as ATT? I want to create an app that will block all emergency bypass, since I can’t programmatically turn emergency bypass off.
How do I copy to file system or play with AVAudioPlayer an MPMediaItem that I get from an MPMediaPickerController initialized with type audio? When I try, I get an error that says:The file “item.mp3” couldn’t be opened because URL type ipod-library isn’t supported.
What are guidelines for numbering the build number? Should it just start with 0 and increment by one each time I archive a project for distribution?
If Apple Documentation does not say whether a certain method is allowed to be run on a background thread other than the main UI thread, does that mean it can or cannot be run on a background thread?
Am I able to see what Logger logs from my app when it's running on a device belonging to an external tester if my app doesn't crash? Am I able to see the logs if my app does crash?
I am using Swift with Xcode for iOS.