1
是否有任何教程將我的iOS 6應用程序與Twitter和Google集成。我搜索了很多,但我找不到任何好的示例或代碼。請任何人指導我。微博集成在iOS 6和Google集成在iOS 6應用程序
是否有任何教程將我的iOS 6應用程序與Twitter和Google集成。我搜索了很多,但我找不到任何好的示例或代碼。請任何人指導我。微博集成在iOS 6和Google集成在iOS 6應用程序
在iOS 5,6中使用此代碼用於twitter。
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter])
{
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"Tweeting from my own app! :)"];
[self presentViewController:tweetSheet animated:YES completion:nil];
}
else
{
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Sorry" message:@"You can't send a tweet right now, make sure your device has an internet connection and you have at least one Twitter account setup" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
}
這是使用XCode嗎?或者這是一個網絡應用程序?谷歌你的意思是Google Plus?只是Twitter或Facebook?你看過iOS 6中的通用共享嗎? – 2012-12-27 06:48:23
其唯一的谷歌和Twitter不是谷歌+。我已經爲facebook構建了演示 –
試試這個:http://www.getsharekit.com/ – 2012-12-27 17:44:02