Iphone 关于使用OAuth集成Twitter
我正在尝试使用OAuth集成Twitter。一切都很好,但当我编译并运行它时,它只显示一个屏幕,显示我自己的按钮和文本字段,带有灰色屏幕,我在xib中添加了灰色屏幕,而不是带有tweeter的屏幕 这是我的密码Iphone 关于使用OAuth集成Twitter,iphone,objective-c,Iphone,Objective C,我正在尝试使用OAuth集成Twitter。一切都很好,但当我编译并运行它时,它只显示一个屏幕,显示我自己的按钮和文本字段,带有灰色屏幕,我在xib中添加了灰色屏幕,而不是带有tweeter的屏幕 这是我的密码 - (void)viewWillAppear:(BOOL)animated { if (!self.engine) { _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self]; s
- (void)viewWillAppear:(BOOL)animated {
if (!self.engine) {
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
self.engine.consumerKey = kOAuthConsumerKey;
self.engine.consumerSecret = kOAuthConsumerSecret;
}
if (![self.engine isAuthorized]) {
UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:self.engine
delegate:self];
if(controller) {
[self presentModalViewController:controller animated:YES];
}
}
}你做了什么?输入一些代码??你使用的是哪一个库,请向我们展示一些代码。我在这里做了所有类似的事情。为什么在你随时可用的情况下使用OAuth集成twitter?你考虑过使用iOS 5 twitter框架吗?它可以帮你省去很多麻烦,只需几行代码就可以发送一条tweet。