uiactivitytypeairdrop

UIActivityViewController Airdrop - Check the status when 'sent' or 'declined'

一个人想着一个人 提交于 2019-12-22 12:19:13
问题 Is it possible to check if the recipient 'declined' or 'accepted' the share? I want to NSLog 'sent' if sent and NSLog 'declined' if declined by the user. 来源: https://stackoverflow.com/questions/23495399/uiactivityviewcontroller-airdrop-check-the-status-when-sent-or-declined

Share a video from asset library with AirDrop fails

允我心安 提交于 2019-12-10 22:29:37
问题 Using AirDrop, I would like to share a video from the asset library. In regards to AirDrop, the documentation says: When using this service, you can provide NSString, NSAttributedString, UIImage, ALAsset, and NSURL objects as data for the activity items. You may also specify NSURL objects whose contents use the assets-library scheme. You may also provide NSArray or NSDictionary objects that contain the listed data types. What I'm seeing thought is that if the data of the activity item is an

UIActivityViewController Airdrop - Check the status when 'sent' or 'declined'

ぃ、小莉子 提交于 2019-12-06 05:31:36
Is it possible to check if the recipient 'declined' or 'accepted' the share? I want to NSLog 'sent' if sent and NSLog 'declined' if declined by the user. 来源: https://stackoverflow.com/questions/23495399/uiactivityviewcontroller-airdrop-check-the-status-when-sent-or-declined

Share via AirDrop only

試著忘記壹切 提交于 2019-12-01 10:50:02
I want to bring out the share sheet with the AirDrop as the only option in my application. In iOS 7, I could simple add all share types to the excludedActivityTypes property of UIActivityViewController ( UIActivityTypeMessage , UIActivityTypeMail , ...) But now in iOS 8, with the app extensions, the users may have extra sharing providers that show up. Is there any way to show AirDrop only ? UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[[NSURL URLWithString:url]] applicationActivities:nil]; NSArray *excludedActivities = @

Share via AirDrop only

时间秒杀一切 提交于 2019-12-01 07:57:44
问题 I want to bring out the share sheet with the AirDrop as the only option in my application. In iOS 7, I could simple add all share types to the excludedActivityTypes property of UIActivityViewController ( UIActivityTypeMessage , UIActivityTypeMail , ...) But now in iOS 8, with the app extensions, the users may have extra sharing providers that show up. Is there any way to show AirDrop only ? UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[[NSURL

UIActivityViewController completion handler is !completed when using AirDrop

梦想的初衷 提交于 2019-12-01 06:29:33
I am using UIActivityViewController to share some text and url which works great when sending some text and a url. I currently need to use the completion handler to perform additional actions depending whether the user cancelled the UIActivityViewController or actually sent something. The completion handler ( activityViewController.completionHandler for iOS 7 is deprecated in iOS 8 which is now activityViewController setCompletionWithItemsHandler ) returns a BOOL completed value which correctly returns true when sending with email sms Facebook Twitter however when sending via Airdrop the user

Exclude AirDrop and Add to Reading List from apps build with iOS 6 SDK

二次信任 提交于 2019-11-29 09:56:54
I have a UIActivityViewController in my iOS 6 app, I am pushing an update but I'm not yet compiling it with iOS 7 SDK. Is there any way to disable Add to Reading List and AirDrop in my UIActivityViewController in iOS7 without recompiling with iOS 7 SDK? excludedActivityTypes is a valid property in iOS 6.0 and above, so you can leverage that. The constants you need ( UIActivityTypeAddToReadingList and UIActivityTypeAirDrop ) are not available so what you can do is use their literal values (most likely the same as the variable name) until you recompile with the iOS 7 SDK (Which I suggest you do.

Exclude AirDrop and Add to Reading List from apps build with iOS 6 SDK

不打扰是莪最后的温柔 提交于 2019-11-28 03:16:55
问题 I have a UIActivityViewController in my iOS 6 app, I am pushing an update but I'm not yet compiling it with iOS 7 SDK. Is there any way to disable Add to Reading List and AirDrop in my UIActivityViewController in iOS7 without recompiling with iOS 7 SDK? 回答1: excludedActivityTypes is a valid property in iOS 6.0 and above, so you can leverage that. The constants you need ( UIActivityTypeAddToReadingList and UIActivityTypeAirDrop ) are not available so what you can do is use their literal values