UIActivityViewControllerCompletionHandler如何? [英] UIActivityViewControllerCompletionHandler How to?

查看:191
本文介绍了UIActivityViewControllerCompletionHandler如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 UIActivityViewControllerCompletionHandler ,但是我不太明白如何..

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

我想检测用户何时完成或关闭此视图控制器 UIActivityViewController )。

I want to detect when the user finishes or dismisses this view controller (UIActivityViewController).

任何人知道如何?

推荐答案

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

完成处理程序的第二个参数告诉您用户是否关闭了控制器。如果他们解除控制权,完成将被设置为 NO

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.

完成处理程序的文档

这篇关于UIActivityViewControllerCompletionHandler如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆