0

fb ios sdk 3.5 を使用しています。パッケージに付属の Scrumptious という名前のサンプル プロジェクトを実行しようとしまし た。ログイン目的で FBLoginView を使用していますが、FBLoginView は iOS5.0 では動作しません。FBLoginView を押すと、押したままになり、何も起こりません。iOS6では問題なく動作していますが。ログイン用のサファリが開きます。デバイスがないため、シミュレーターでのみテストしています。FBloginView は iOS6 デバイス専用ということですか?

- (void)loginViewShowingLoggedInUser:(FBLoginView *)loginView {
    // Upon login, transition to the main UI by pushing it onto the navigation stack.
    SCAppDelegate *appDelegate = (SCAppDelegate *)[UIApplication sharedApplication].delegate;
    [self.navigationController pushViewController:((UIViewController *)appDelegate.mainViewController) animated:NO];
}


- (void)loginViewShowingLoggedOutUser:(FBLoginView *)loginView {
    // Facebook SDK * login flow *
    // It is important to always handle session closure because it can happen
    // externally; for example, if the current session's access token becomes
    // invalid. For this sample, we simply pop back to the landing page.
    SCAppDelegate *appDelegate = (SCAppDelegate *)[UIApplication sharedApplication].delegate;
    if (appDelegate.isNavigating) {
        // The delay is for the edge case where a session is immediately closed after
        // logging in and our navigation controller is still animating a push.
        [self performSelector:@selector(logOut) withObject:nil afterDelay:.5];
    } else {
        [self logOut];
    }
}
4

0 に答える 0