我使用 OAuthTwitterDemo,它给出了错误 [OAConsumer initWithKey:secret:]: unrecognized selector sent to instance 0x85b8dc0
我使用此方法登录...
if (_engine) return;
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate: self];
_engine.consumerKey = kOAuthConsumerKey;
_engine.consumerSecret = kOAuthConsumerSecret;
UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine: _engine delegate: self];
if (controller)
[self presentModalViewController: controller animated: YES];
else {
[_engine sendUpdate: [NSString stringWithFormat: @"Already Updated. %@", [NSDate date]]];
}
但是登录不显示,它给出了一个错误......
[OAConsumer initWithKey:secret:]:无法识别的选择器发送到实例 0x85b8dc0 并导致 App 崩溃。