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
and thus complete my With handler Sha airdrop
When sending code> Twitter
, the code should be sent to the cancel
to send the code to UIActivityViewController 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
.
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
Post a Comment