我想用UIActivityViewController在facebook上分享。 當我使用我可以使用UIActivityViewController在Facebook上分享嗎?
UIImage* image = [UIImage imageNamed:@"image1.png"];
NSArray* dataToShare = @[@"test",image];
UIActivityViewController* activityViewController =
[[UIActivityViewController alloc] initWithActivityItems:dataToShare
applicationActivities:nil];
activityViewController.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll];
我無法看到「在Facebook上分享」圖標,雖然我不排除「UIActivityTypePostToFacebook」。是不是有一個預定義的Facebook的UIActivity?
感謝
如何排除提醒和備註? – huyleit 2016-03-18 10:04:34