की एक लगभग सटीक डुप्लिकेट हो रहा है: https://developers.google.com/+/mobile/ios/
साझा करने पर बिट: https://developers.google.com/+/mobile/ios/#share_on_google
अपना हिस्सा वस्तु बनाएँ:
GooglePlusShare *share =
[[[GooglePlusShare alloc] initWithClientID:clientID] autorelease];
share.delegate = self; // optional
appDelegate.share = share; //optional
अपने ख में utton के 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];
}
गूगल + URL हैंडलर:
- (BOOL)application: (UIApplication *)application
openURL: (NSURL *)url
sourceApplication: (NSString *)sourceApplication
annotation: (id)annotation {
// ...
if ([self.share handleURL:url
sourceApplication:sourceApplication
annotation:annotation]) {
return YES;
}
// ...
}
स्रोत
2012-10-04 13:27:14
मैं एक ही सुविधा के लिए देख रहा हूँ, Google+ के लिए और के लिए फेसबुक – Baldrick
वहाँ कम से कम कोई [दस्तावेज] (https हो रहा है: // developers.google.com/+/plugins/share/#sharelink) ऐसा करने का तरीका। –