唤起系统的分享(swift)

前端之家收集整理的这篇文章主要介绍了唤起系统的分享(swift)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

唤起系统的分享(swift)

by 伍雪颖


let activityViewController = UIActivityViewController (activityItems:
[
"test" ],applicationActivities: nil )

let excludeActivities = [
UIActivityTypePostToWeibo ,
UIActivityTypeAssignToContact ,170)">UIActivityTypeSaveToCameraRoll ,170)">UIActivityTypeAddToReadingList ,]
activityViewController.
excludedActivityTypes = excludeActivities

presentViewController (activityViewController,animated: true ,
completion: nil)
原文链接:https://www.f2er.com/swift/326704.html

猜你在找的Swift相关文章