If you integrating Google plus in your IOS app and want to post some message you can use share dialog. To post message first create an object of GPPShareBuilder then you can set the text or url in this object like below example.
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
[shareBuilder setPrefillText:@"write your text here"];
[shareBuilder setURLToShare:[NSURL URLWithString:@"your url"]];
BOOL result = [shareBuilder open];
"open" method open the share dialog and returns a boolean value YES if no error NO if any error occurs.
0 Comment(s)