This is a migrated thread and some comments may be shown as answers.

Landscape Splash iPhone

1 Answer 56 Views
iOS Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 05 Feb 2014, 03:29 PM
OK. So I noticed today that the iPhone does not have a landscape splash. It always starts in portrait. This is on Apple's end I realize this. But I also noticed that in AppBuilder if you rotate after you open the app the screen still rotates and keeps the same portrait splash (needless to say it's ugly and nothing lines up).

So is there some mechanism I can use to disable orientation change until the deviceready event executes? (to essentially turn orientation back on during deviceready) ?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Emil
Telerik team
answered on 10 Feb 2014, 05:06 PM
Hi,

As I see there is problem with the plugin, we'll do our best to fix it.
But until then I suggest to hook  "onorientationchange" javascript event:

function changeOrientation() {
    switch (window.orientation) {
        case 0:
            // portrait, home bottom
        case 180:
            // portrait, home top
            break;
        case -90:
            // landscape, home left
        case 90:
            // landscape, home right
            
            break;
    }
}
 
window.onorientationchange = function () {
    setTimeout(changeOrientation, 1000);
}
Regards,
Emil
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Tags
iOS Devices
Asked by
Kevin
Top achievements
Rank 1
Answers by
Emil
Telerik team
Share this question
or