Anyone know how to use the Share Extension for iOS that either shows an alert or shows nothing at all when another app shares with your app?
Am I allowed to use a UIAlertController?
Post
Replies
Boosts
Views
Activity
I'm trying out Apple's Document Browser
I am trying to find what UTTypeIdentifier com.apple.coreaudio-format conforms to for the UTTypeConformsTo item in Info.plist of said project. I was able to find com.apple.coreaudio-format, but I am having trouble finding the UTTypeConformsTo value for that.
Anyone can guide me or give me a hint?
Have any of you ever tried using a UITextView in stead of UITextField to do what UITextField does and does not do? I think it would make coding easier to since the two classes are similar but has to be treated a little differently by the code.
Does a database subscription send a notification when the current user of the device accept a CloudKit share?
Has anyone noticed that with the latest iOS (16.1.2), UICloudSharingController doesn't restrict who can have access to the share when you set the availablePermissions to include .allowReadOnly and exclude .allowReadWrite. It behaves as I expect in the previous versions of iOS.
Anyone know anything that would help me with this problem?
Is the owner and the the app the only ones that can change the value of CKShare.publicPermission using UICloudSharingController?
I mean, can a participant change the the value of CKShare.publicPermission using UICloudSharingController if the permission property of that participant is readWrite and the participant has access to the presented UICloudSharingController and its availablePermissions property includes allowReadWrite?
What exactly does UICloudSharingController.PermissionOptions.allowReadWrite grant read and write access to? Does that mean the current user can change the CKShare.publicPermission property? I don't think the user can change the values of the permission properties of participants if he/she changes CKShare.publicPermission. The way participants are affected is that they may lose access to the CKShare, but their permission property can only be set by the owner.
Am I right about this?
I have an app that uses CKShare and UICloudSharingController to share data with other users of my app. I noticed that when Owner shares with UserA, UserA is able to "copy" the link or "send" the link, as the title of the button use. How do I disable that completely so that only the owner can copy or send the link? Also, what determines whether it says "Copy Link" or "Send Link"? Does that have to do with the version of iOS?
I've tried every combination of UICloudSharingController.PermissionOptions to set to UICloudSharingController..availablePermissions ... [.allowPrivate, .allowReadOnly], [.allowReadOnly], [.allowPrivate], and []. Setting the value to [] sets it to .standard, which does the exact same thing as [.allowPrivate, .allowReadOnly], though the value is different for availablePermissions property.
What framework would I use to make one of those popup menus that I see when I long press a field when I look at a Contact in Contacts. The popup menu is black. It looks like a horizontal bar with items separated by a very think vertical white line between each item. When I press a field while viewing a Contact, the menu gives an option to Copy and another option for iPhone to Speak.
Has anyone ever heard about any requests for swift to implement a "guard catch" statement?
It would be like a do catch statement that allows code execution to continue like a guard statement does, and would provide an Error object to be used with a return statement or any of the key words a guard statement allows when the guard condition fails.
It would look like this:
guard do {
. . .
} catch {
. . .
return error
}
What is one key-value pair of a dictionary called? Or what is the best word for it to call a variable? "Pair" seems to be the simplest and most intuitive. Is there a better name for a variable for such? I'm wondering if there is a technical term defined for swift.
I remember getting a message while running my iOS app on an iOS device that said I have to turn Developer mode on in my iOS device and I found the setting and turned on developer mode. I'm looking for that setting again so I can turn it off on iPhone I use, so that my app can check if Developer mode is on, and if it's not on, certain features are disabled, particularly one that deletes data on the device. That is intended to delete test data. I don't want actual data on my iPhone to be deleted. I need this precaution. When I looked at Developer Settings in Settings app on my iPhone 8 using iOS 15.6.1, there doesn't seem to be any way of turning off developer mode. Is there something I can check on my device that I can use to let my app know that I don't want certain features to be available on my app for that specific device?
What App Extensions and Entitlements or any other settings or anything else do I need to do in order to allow my app to use CloudKit sharing to share CKShare.url with other users of my app so that one user can share with another user by sending the URL to my app in addition to other apps such as Messages and Mail?
I am using a Share Extension that shares a simple text, thus NSExtensionActivationSupportsText is in my Info.plist. How would I configure UIActivityViewController to enable my app to share test with other uses of my app? Which classses would I need to use? I actually need to pass a URL, more specifically a URL generated by CloudKit framework to use CKShare and UICloudSharingController, but for now I need to learn how to simply share test information.
It looks like the Share Extension allows other "host" apps to share content with my "containing" app. How do I share content from my app with other apps using the standard iOS share sheet? I have found information on how to use UISheetPresentationController and UIActivityViewController. What is Apple's designated standard API to share content from my iOS app? I would think their designated way would show all the the apps that the share sheet can share with. Is UIActivityViewController the way that is most intended by Apple to do this?
How do I check to see if a CKDatabaseSubscription has already been "saved" in CloudKit for a specific user? The Apple sample CloudKitShare actually has code to create database subscriptions each time the app is launched. If it is already there, the code ignores it.