唤起系统的分享(swift)
by 伍雪颖
let
activityViewController =
UIActivityViewController
(activityItems:
[ "test" ],applicationActivities: nil )
let excludeActivities = [
UIActivityTypePostToWeibo ,
UIActivityTypeAssignToContact ,170)">UIActivityTypeSaveToCameraRoll ,170)">UIActivityTypeAddToReadingList ,]
activityViewController. excludedActivityTypes = excludeActivities
presentViewController (activityViewController,animated: true ,
[ "test" ],applicationActivities: nil )
let excludeActivities = [
UIActivityTypePostToWeibo ,
UIActivityTypeAssignToContact ,170)">UIActivityTypeSaveToCameraRoll ,170)">UIActivityTypeAddToReadingList ,]
activityViewController. excludedActivityTypes = excludeActivities
presentViewController (activityViewController,animated: true ,
completion: nil)