iOS Question Hide status bar AFTER loading image

Mark Turney

Active Member
Licensed User
Longtime User
Hello all,

I have the status bar disabled in my full screen app. However, after I load an image from the photo gallery, the status bar reappears. After an orientation change and back again, it is gone again as I want. This does not occur when taking a picture, then loading to the image view ... only when loading the image to the imageview from the gallery.

Thoughts?

Thanks in advance!
 

Mark Turney

Active Member
Licensed User
Longtime User
I am hiding it with the code referenced in the link above. However, when I call it again within the Complete event, the app crashes. I'll post code a little later if nothing comes to mind.

Thanks again.
 
Upvote 0

Mark Turney

Active Member
Licensed User
Longtime User
I added it below, but then the status bar returns permanently:
B4X:
Sub cam1_Complete (Success As Boolean, Image As Bitmap, VideoPath As String)
    Dim no As NativeObject = App
    If Success Then
        If Image.IsInitialized Then
            GraphPaper.ContentMode = GraphPaper.MODE_FIT
            GraphPaper.Bitmap = Image
            no.RunMethod("setStatusBarHidden:animated:", Array(True, False))
        End If
    End If
End Sub
If I REM out the no.RunMethod("setStatusBarHidden:animated:", Array(True, False)) line, then the status bar is present right after the image is retrieved but disappears upon landscape rotation.
 
Upvote 0

Mark Turney

Active Member
Licensed User
Longtime User
Sure, I'll PM you the whole project zipped up. Thanks Erel.
 
Upvote 0

Mark Turney

Active Member
Licensed User
Longtime User
Unfortunately the status bar always reappeared after choosing an image, however an orientation change re-hides it. So, I just went forward with the app. Apple approved it and I will just make a bug fix if I ever find a solution.

Sorry no solution found :-(
 
Upvote 0
Top