ios - UIActivityViewController completion handler is !completed when using AirDrop -


I am using UIActivityViewController to send some text and some text when the URL works well To share and a URL.

The user UIActivityViewController is canceled based on whether I currently use the completed handler or has actually sent something that needs to do additional actions.

Completed handler returns a ( activityViewController.completionHandler for iOS 7 which is now activityViewController setCompletionWithItemsHandler has been deprecated in iOS 8) email sms Facebook when sending correctly complete airdrop When sending code> Twitter , the code should be sent to the cancel to send the code to UIActivityViewController and thus complete my With handler Sha is false received.

Does anybody know that Airdrop when UIActivityViewController is dismissed?

Thanks

There is some interest for me, but unfortunately I could not test it because AirDrop did not want to work between my idiovell. Forgive for this

Anyway, you could try setCompletionWithItemsHandler to check activityType .

[activityViewController setCompletionWithItemsHandler: ^ (NSString * activityType, bool complete, NSArray * returnedItems, NSError * activityError) {NSLog (@ "full:% @, \ n% d \ n% @, \ N% @, ", activityType, complete, returnedItems, activityError); }];

If activity type is type com.apple.airdrop.etc (only one estimate) then the user has taped on the icon . Hope this can help.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -