我的应用程序中有一个共享按钮,当用户点击它时会显示一条弹出消息,将我的应用程序的链接分享到不同的社交网站,但是当你点击它时只显示Facebook图标来分享链接。我怎么能获得不同的其他网站访问,如Gmail,Twitter,Instagram,雅虎和WhatsApp。这是我的代码
NSString *texttoshare = @"myURL"; //this is your text string to share
NSArray *activityItems = @[texttoshare];
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
activityVC.excludedActivityTypes = @[UIActivityTypeAssignToContact, UIActivityTypePrint];
[self presentViewController:activityVC animated:TRUE completion:nil];