UIActivityViewControllerCompletionHandler How to?

后端 未结 5 1750
予麋鹿
予麋鹿 2021-02-02 10:05

I am trying to use the UIActivityViewControllerCompletionHandler , but i dont quite get how..

I want to detect when the user finishes or dismisses this

5条回答
  •  孤城傲影
    2021-02-02 10:42

    typedef void (^UIActivityViewControllerCompletionHandler)
        (NSString *activityType, BOOL completed);
    

    The second parameter of the completion handler tells you whether the user dismissed the controller. If they dismissed the controller, completed will be set to NO.

    There's more details in the completion handler's documentation.

提交回复
热议问题