How to hide the status bar in IOS 7

@borderleap,

Can you please be more specific on the transitions issues? What exactly is occurring? I’ll field these to the engineers a.s.a.p. if you can describe them and perhaps show some code on where it’s happening.

Thanks,

Brent

Hey Brent, still investgating…  I have two blocks that animate towards each other, each with simple transition.to() using an easeOutBounce easing function.  With build 1202, the blocks hit accurately and then did what they should.  With build 1210, the blocks didn’t hit each other but there was about a 4px space in between.   

The easeOutBounce function I am using is not part of any of the new built-in functions (Robert Penner’s library), but I assume it’s almost the same.  Just interesting why it the blocks were off a bit…

Then, had an unexpected crash that hadn’t occurred before…  still investigating that.

I was able to use friskypigstudio’s suggestion for UIViewControllerBasedStatusBarAppearance = false on build 1202 and the status bar is hidden.   

For 1202, you will probably need to use the UIViewControllerBasedStatusBarAppearance line since this bug was fixed in 1210.

In 1202, i used the UIViewControllerBasedStatusBarAppearance = false 

it is working fine when i am testing in my devices. Now my app in live, i saw the status bar when i downloaded the app from app-store.

what is the problem?

Hi ,

i also had the same problem , but it works well on device start ( status bar hide works ) , when choose photo library it appears again and never hide ( corona version 1240 ).Here is my build settings.

iphone =  

    {  

        plist=  

        {  

            UIApplicationExitsOnSuspend = false,  

            UIStatusBarHidden = true,

            CFBundleIconFile = “Icon.png”,

            UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,

            UISupportedInterfaceOrientations = { “UIInterfaceOrientationLandscapeLeft”,“UIInterfaceOrientationLandscapeRight” },

            CoronaUseIOS7LandscapeOnlyWorkaround = true,

            CFBundleIconFiles = {  

                “Icon.png”,

                “Icon@2x.png”,

                “Icon-40.png”,

                “Icon-40@2x.png”,

                “Icon-60.png”,

                “Icon-60@2x.png”,

                “Icon-72.png”,

                “Icon-72@2x.png”,

                “Icon-76.png”,

                “Icon-76@2x.png”,

                “Icon-Small-50.png”,

                “Icon-Small-50@2x.png”,

                “Icon-Small.png”,

                “Icon-Small@2x.png”

            },

        }, 

    },  

and in main.lua 

display.setStatusBar( display.HiddenStatusBar ) 

what’s the problem with my code , please help

Thanks

That may be an iOS bug since the photo picker is really their library.  I don’t know why we would turn it back on.

In 1202, i used the UIViewControllerBasedStatusBarAppearance = false 

it is working fine when i am testing in my devices. Now my app in live, i saw the status bar when i downloaded the app from app-store.

what is the problem?

Hi ,

i also had the same problem , but it works well on device start ( status bar hide works ) , when choose photo library it appears again and never hide ( corona version 1240 ).Here is my build settings.

iphone =  

    {  

        plist=  

        {  

            UIApplicationExitsOnSuspend = false,  

            UIStatusBarHidden = true,

            CFBundleIconFile = “Icon.png”,

            UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,

            UISupportedInterfaceOrientations = { “UIInterfaceOrientationLandscapeLeft”,“UIInterfaceOrientationLandscapeRight” },

            CoronaUseIOS7LandscapeOnlyWorkaround = true,

            CFBundleIconFiles = {  

                “Icon.png”,

                “Icon@2x.png”,

                “Icon-40.png”,

                “Icon-40@2x.png”,

                “Icon-60.png”,

                “Icon-60@2x.png”,

                “Icon-72.png”,

                “Icon-72@2x.png”,

                “Icon-76.png”,

                “Icon-76@2x.png”,

                “Icon-Small-50.png”,

                “Icon-Small-50@2x.png”,

                “Icon-Small.png”,

                “Icon-Small@2x.png”

            },

        }, 

    },  

and in main.lua 

display.setStatusBar( display.HiddenStatusBar ) 

what’s the problem with my code , please help

Thanks

That may be an iOS bug since the photo picker is really their library.  I don’t know why we would turn it back on.

I am having the same problem with the photo picker. I believe this is a bug in Corona SDK because it is not dismissing  UIImagePickerController  correctly. 

See here: http://stackoverflow.com/questions/18880364/uiimagepickercontroller-breaks-status-bar-appearance

I hope this can get fixed soon, as the media functions are now practically useless on the iPad.

Rob, is there any update on this? I think I cannot be the only one having this problem. When you open the camera roll the status bar goes back on, changes color, and cannot be turned off afterwards anymore. It happens on all iPads and iPhones I have tested it on. 

Ok nevermind, by putting    UIViewControllerBasedStatusBarAppearance = true  in the build.settings plist the problem is solved.

I am having the same problem with the photo picker. I believe this is a bug in Corona SDK because it is not dismissing  UIImagePickerController  correctly. 

See here: http://stackoverflow.com/questions/18880364/uiimagepickercontroller-breaks-status-bar-appearance

I hope this can get fixed soon, as the media functions are now practically useless on the iPad.

Rob, is there any update on this? I think I cannot be the only one having this problem. When you open the camera roll the status bar goes back on, changes color, and cannot be turned off afterwards anymore. It happens on all iPads and iPhones I have tested it on. 

Ok nevermind, by putting    UIViewControllerBasedStatusBarAppearance = true  in the build.settings plist the problem is solved.