Jeśli chcesz ściśle zintegrować aplikacja Google+ polecam używając ich SDK opisane tutaj: https://developers.google.com/+/mobile/ios/
Bit udostępniania: https://developers.google.com/+/mobile/ios/#share_on_google
Tworzenie obiektu akcji:
GooglePlusShare *share =
[[[GooglePlusShare alloc] initWithClientID:clientID] autorelease];
share.delegate = self; // optional
appDelegate.share = share; //optional
W swojej b Utton za IBAction:
- (IBAction) didTapShare: (id)sender {
// Add code here to retrieve the value of "share"
// This could be self.share if this is a property of your ViewController
// or ((MyAppDelegate *)[[UIApplication sharedApplication] delegate]).share
[[[[share shareDialog]
setURLToShare:[NSURL URLWithString:@"URL_TO_SHARE"]]
setPrefillText:@"YOUR TEXT HERE"] open];
// Or, without a URL or prefill text:
[[share shareDialog] open];
}
Google+ URL handler:
- (BOOL)application: (UIApplication *)application
openURL: (NSURL *)url
sourceApplication: (NSString *)sourceApplication
annotation: (id)annotation {
// ...
if ([self.share handleURL:url
sourceApplication:sourceApplication
annotation:annotation]) {
return YES;
}
// ...
}
szukam tej samej funkcji w Google+ i na Facebooku – Baldrick
Wydaje się, że przynajmniej nie ma udokumentowanych [] (https: // developers.google.com/+/plugins/share/#sharelink) sposób na zrobienie tego. –