iOs8 ipad xcode 6 FBdialog doesn't rotate with the deatilview rotating

175 views Asked by At

In my App, it shows the FBdialog for sharing something on facebook timeline.

The dialog is shown by this command:

[FBDialogs presentShareDialogWithParams:shareParams
    clientState:nil
        handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
            if(error) {
                NSLog(@"Error publishing story.");
            } else if (results[@"completionGesture"] && [results[@"completionGesture"] isEqualToString:@"cancel"]) {
                NSLog(@"User canceled story publishing.");
            } else {
                NSLog(@"Story published.");
            }
        }];

The dialog is shown on a detailViewController. Since ios 7 it was performing fine in ipad. but in ios8 ipad both in real device and in simulator, the fb dialog shown in always in portrait regardless of device orientation. All orientations are allowed and the detailViewController rotates properly but the dialog no. If I'm holding the device in landscape the dialog is 90 degree wrong, and if upside down, the dialog 180 degree.

What is the problem?

1

There are 1 answers

1
user3234675 On

Solved by upgrading to latest facebook sdk framework.