Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 关于使用OAuth集成Twitter_Iphone_Objective C - Fatal编程技术网

Iphone 关于使用OAuth集成Twitter

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

我正在尝试使用OAuth集成Twitter。一切都很好,但当我编译并运行它时,它只显示一个屏幕,显示我自己的按钮和文本字段,带有灰色屏幕,我在xib中添加了灰色屏幕,而不是带有tweeter的屏幕

这是我的密码

   - (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。