如何使用iOS5将Twitter帐户关注者访问到iPhone? 我是iOS5的新手,请您使用一些代码或链接建议。
先谢谢 巴斯卡尔
答案 0 :(得分:1)
您可以使用此link to find how to access twitter accounts 然后,您可以轻松使用API查找关注者
答案 1 :(得分:1)
在IOS5中,twitter被intregated ....然后No Use Extra frameWork ... 试试这段代码
- (void)OnTwitter {
Class TWTweetComposeViewControllerClass = NSClassFromString(@"TWTweetComposeViewController");
if (TWTweetComposeViewControllerClass != nil) {
if([TWTweetComposeViewControllerClass respondsToSelector:@selector(canSendTweet)]) {
UIViewController *twitterViewController = [[TWTweetComposeViewControllerClass alloc] init];
[twitterViewController performSelector:@selector(setInitialText:)
withObject:twitterText];
[twitterViewController performSelector:@selector(addURL:)
withObject:[NSURL URLWithString:url]];
[twitterViewController performSelector:@selector(addImage:)
withObject:urImage];
[self presentModalViewController:twitterViewController animated:YES];
[twitterViewController release];
}
else {
// Use ShareKit for previous versions of iOS
}
}
导入班级中的farmeWork
#import <Twitter/Twitter.h>
#import <Accounts/Accounts.h>