I want to share data in multiple social platform like Facebook, Twitter, Google+, LinkedIn etc. It works in Instagram application but how can I implement in my iOS application...
Asked
Active
Viewed 605 times
0
-
1Use relevant SDKs provided by these companies. All of these SDKs are available for iOS. – NSNoob Nov 30 '15 at 13:05
-
use `uiactivityviewcontroller` for your concept – Anbu.Karthik Nov 30 '15 at 13:05
-
@Anbu.Karthik it will provide sharing service for Facebook and twitter but will G+, LinkedIn and Instagram be available on `UIActivityViewController` by default? – NSNoob Nov 30 '15 at 13:08
-
@NSNoob -- `G+, LinkedIn and Instagram` for these things we need to use SDK or api's else part `UIActivityViewController` is enough. – Anbu.Karthik Nov 30 '15 at 13:12
-
1yup that's what I thought. Thats why I recommended using SDKs. – NSNoob Nov 30 '15 at 13:13
-
Thanks you all, have you any demo source that use that all SDKs that do authenticate only once in app..? – Nikunj Vasoya Dec 01 '15 at 07:07
1 Answers
0
NSArray *objectsToShare = @[_s_image]; UIActivityViewController * avc = [[UIActivityViewController alloc] initWithActivityItems:objectsToShare applicationActivities: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];
}

Ramani Hitesh
- 214
- 3
- 15