Landscape Splash iPhone

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    47 posts
    Member since:
    Nov 2012

    Posted 05 Feb 2014 Link to this post

    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!
  2. Emil
    Admin
    Emil avatar
    2 posts

    Posted 10 Feb 2014 Link to this post

    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)
Back to Top