iOS Question Hide status bar AFTER loading image

Mark Turney

Active Member
Licensed 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
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.
 

Mark Turney

Active Member
Licensed 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 :-(
 
Top