iPad中的FBWebDialog旋转问题 [英] FBWebDialog rotation issue in iPad

查看:87
本文介绍了iPad中的FBWebDialog旋转问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用以下代码打开FBWebDialog时,一旦打开FBWebDialog,单击用户名文本字段,如果您旋转iPad设备,现在会显示键盘,FBWebDialog不会自动旋转到横向。

When I use following code to open FBWebDialog, Once FBWebDialog is open click in username textfield and keyboard is displayed now if you rotate iPad device, FBWebDialog is not auto-rotating to landscape orientation.

[FBSession setActiveSession: [[FBSession alloc] initWithPermissions:permission] ];
[[FBSession activeSession] openWithBehavior:FBSessionLoginBehaviorForcingWebView completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
    switch (status) {
        case FBSessionStateOpen:
            [self getMyData];
            break;
        case FBSessionStateClosedLoginFailed: {
            NSString *errorCode = [[error userInfo] objectForKey:FBErrorLoginFailedOriginalErrorCode];
            NSString *errorReason = [[error userInfo] objectForKey:FBErrorLoginFailedReason];
            BOOL userDidCancel = !errorCode && (!errorReason || [errorReason isEqualToString:FBErrorLoginFailedReasonInlineCancelledValue]);
            if(error.code == 2 && ![errorReason isEqualToString:@"com.facebook.sdk:UserLoginCancelled"]) {
                UIAlertView *errorMessage = [[UIAlertView alloc] initWithTitle:kFBAlertTitle message:kFBAuthenticationErrorMessage delegate:nil cancelButtonTitle:kOk otherButtonTitles:nil];
                [errorMessage performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:YES];
                errorMessage = nil;
            }

        }
        break;
    // presently extension, log-out and invalidation are being implemented in the Facebook class
    default:
        break; // so we do nothing in response to those state transitions
    }
}];

以下是重现此问题的步骤:

Following are steps to reproduce this issue :


  1. 打开在iPad应用程序内打开的FBWebialog

  2. 点击用户名文本字段并显示键盘

  3. 现在如果你旋转iPad设备,FBWebDialog不会自动旋转到横向。

请帮我解决这个问题....

Please help me to solve this issue....

推荐答案

来自facebook方面的错误,这是我发给facbook支持团队的查询。甚至没有得到Facebook的任何回应,它的嘲笑......

Its bug from facebook side, here is the my query posted to the facbook support team. Even not getting any kind of response from Facebook,its ridicules...

https://developers.facebook.com/bugs/355080977928726?browse=external_tasks_search_results_52820409e9c884976463112

这篇关于iPad中的FBWebDialog旋转问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆