我想在多个社交平台上共享数据,如脸书,推特,Google+,LinkedIn等。它在Instagram应用程序中工作,但我如何在我的iOS应用程序中实现…
发布于 2017-06-01 17:17:36
NSArray *objectsToShare = @_s_image;UIActivityViewController * avc = [UIActivityViewController alloc :objectsToShare应用程序活动:nil];
avc.excludedActivityTypes=@[UIActivityTypePostToTwitter];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
[self presentViewController:avc animated:YES completion:nil];
}
else
{
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:avc];
[popup presentPopoverFromRect:CGRectMake(self.view.frame.size.width/2, self.view.frame.size.height/4, 0, 0)inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}https://stackoverflow.com/questions/33999284
复制相似问题