2012-12-27 2 views
1

iOS 6 앱을 Twitter 및 Google과 통합하는 데 필요한 자습서가 있습니까? 나는 많은 것을 수색했지만 어떤 좋은 모범이나 코드도 찾을 수 없었다. 제발 누군가 나를 인도 해주세요.twitter ios 6 및 iOS 6 앱의 Google 통합 통합

+1

이 코드는 Xcode를 사용합니까? 아니면이 웹 응용 프로그램입니까? Google은 Google Plus를 의미합니까? 트위터 나 페이스 북 만? iOS 6에서 보편적 인 공유에 대해 살펴 보셨습니까? –

+0

Google 및 트위터 만 google +가 아닙니다. 이미 페이스 북을위한 데모를 만들었습니다 –

+0

시도해보십시오. http://www.getsharekit.com/ –

답변

0

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]; 
}