简体   繁体   中英

FB iOS SDK - How to detect when user tap done?

I wonder how to detect when user tap Done in upper left corner to skip sign in.

Is any delegate method being called at that moment?

I need to detect that to unlock userInteraction in my UI.

在此处输入图片说明

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions: @[PERMISSIONS] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
    if (error) {
        NSLog(@"Process error %@", error);
    } else if (result.isCancelled) {
      // User tap Done
    } else {
      // Successful login  
    }
}];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM