更新到iOS 9.3.4后,FBSDKContainerViewController my_shouldAutorotate崩溃

时间:2016-08-10 07:51:54

标签: ios objective-c facebook ios9 facebook-ios-sdk

我已将iOS更新为9.3.4,尝试使用Facebook SDK登录时出现崩溃问题。

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; 
[login logInWithReadPermissions: @[@"public_profile", @"email", @"user_friends", @"user_birthday"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { 
    if (error) 
    { 
        NSLog(@"Process error"); 
    } 
    else if (result.isCancelled) 
    { 
        NSLog(@"Cancelled"); 
    } 
    else 
    { 
        NSLog(@"Logged in"); [self getFacebookData]; 
    } 
}];
  

日志:[FBSDKContainerViewController my_shouldAutorotate]:无法识别的选择器发送到实例0x13c6e45a0

0 个答案:

没有答案