iOS Question Hide status bar AFTER loading image

Discussion in 'iOS Questions' started by Mark Turney, Feb 24, 2015.

  1. Mark Turney

    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!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Mark Turney

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

    Mark Turney Active Member Licensed User

    I added it below, but then the status bar returns permanently:
    Code:
    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(TrueFalse))
            
    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.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload a small project that demonstrates this issue?
     
  6. Mark Turney

    Mark Turney Active Member Licensed User

    Sure, I'll PM you the whole project zipped up. Thanks Erel.
     
  7. narek adonts

    narek adonts Well-Known Member Licensed User

    Was this issue resolved?

    I have the same problem

    Narek
     
  8. Mark Turney

    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 :-(
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice