我已经从https://github.com/ResultsDirect/LinkedIn-iPhone下载了源代码。演示工作正常,并尝试在我的应用程序中使用。
我已经按照帖子中提到的所有步骤进行了...
但我得到了错误
"_OBJC_CLASS_$_RDLinkedInEngine", referenced from:
"_OBJC_CLASS_$_RDLinkedInAuthorizationController", referenced from:
当我评论 RDLinkedInEngine 和 RDLinkedInAuthorizationController 的行时,错误被删除
- (void)loadView {
[super loadView];
// rdEngine = [[RDLinkedInEngine engineWithConsumerKey:kOAuthConsumerKey consumerSecret:kOAuthConsumerSecret delegate:self] retain];
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// if( !rdHasAppeared ) {
// UIViewController* controller = [RDLinkedInAuthorizationController authorizationControllerWithEngine:rdEngine delegate:self];
// if( controller ) {
// [self presentModalViewController:controller animated:YES];
// rdHasAppeared = YES;
// }
// else {
// NSLog(@"Already authenticated");
// }
// }
}
我的应用程序已经从源代码https://github.com/bengottlieb/Twitter-OAuth-iPhone集成了 MGTwitterEngine, 这很好。
阿米特巴坦