0

所以我刚刚开始使用 Facebook SDK for iOS。Auth 效果很好,我可以收到我想要的信息。我的问题不在这里。当我登录 Facebook 并转到上一个视图时没有任何问题,然后我单击该视图并出现 exc_bad_access 错误。(我已经尝试了僵尸模式,但我没有找到任何东西)!

http://i.stack.imgur.com/MXkbY.png

(僵尸简介)= http://www.hostingpics.net/viewer.php?id=302708Pleincran2607131730.png 如果有人可以帮助我!

ClsAppDelegate.h :
@interface ClsAppDelegate : UIResponder <UIApplicationDelegate>{  
@public
    Boolean islogged;
}



ClsAppDelegate.m :
     - (void)sessionStateChanged:(FBSession *)session
                              state:(FBSessionState) state
                              error:(NSError *)error
        {
            switch (state) {
                case FBSessionStateOpen: {            

                   ClsViewController *changeview = [[ClsViewController alloc]init];
                    [changeview Loginsuccess];
            islogged = true;

                }
                    break;
                case FBSessionStateClosed:
                case FBSessionStateClosedLoginFailed:
                    // Once the user has logged in, we want them to
                    [FBSession.activeSession closeAndClearTokenInformation];
                    [self showLoginView];
                    break;
                default:
                    break;
            }

            if (error) {

            }
        }
4

0 回答 0