How can I fix orientation on iPad?

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    // Override point for customization after application launch.

    [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait];

    return YES;

}

 

I use this code. But CoronaView doesn’t rotate. Native view rotate.

 

  1. All orientation supports.

  2. Rotate iPad to Landscape.

  3. Launch app.

  4. Coronaview is not rotating.

  • (BOOL)shouldAutorotate

{

    return false;

}

  • (BOOL)shouldAutorotate

{

    return false;

}