-4

クラッシュの原因を突き止めてください。同じタイトルの質問がたくさんあることは知っていましたが、問題の解決策が見つかりません。私の問題は、ios7 でのアプリのクラッシュ (Bad Access) です。古いバージョンでは正常に動作します。これは私のコードです:

- (void)updateLine:(NSNotification*)notification
{
    BOOL registered =[(notification.userInfo)[kRADialePushViewNotificationRegistration] boolValue];
    if (!registered) {
        if (self.navigationController) {// it crash this line
            [self.navigationController popViewControllerAnimated:YES];
        }
    }
}
4

1 に答える 1