UIImagePickerController and iphone os sdk 3.0

Discussion in 'iOS Programming' started by arnieterm, Mar 17, 2010.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    In 3.0 how can one hide the bar at the bottom that displays the "Cancel" and snap buttons?
    I think there is a support for this in iphone os sdk 3.1.3 with the property "showCameraControls".
    For iphone os sdk 3.0 how we can hide the bar. I need this bar hidden as I do not want to take the snap at all, just show the user the camera with some overlying UI on it.

    Thanks
    Arnieterm
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    There is no Apple-Supported way to do what you're asking before iPhone OS 3.1. If your app is based on this ability you should set your iPhone deployment target to 3.1.
     
  3. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #3
    Upgraded to iphone os 3.1.3 and able to hide the bottom bar by using showCameraControls but now there appears a black bar instead of it. Is it possible to display the camera view to full screen so that it takes up the space left by the bottom bar?
    I have seen certain apps that shows camera view with full screen [augmented reality]
    I am using a navigation based application with RootViewController inheriting UIImagePickerController class
    THanks
    Arnieterm
     
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    That black bar is where the controls are supposed to go. If you want the camera image to fill the screen you can set the transform on the camera image to make it a little bigger. It will fill the length of the screen but a little bit of it will be cut off on the edges.
     
  5. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #5
    I have used a transform of (1,1.13) and it perfectly removes the black frame at the bottom. The UIImagePickerController in question is inherited by RootViewController in my navigation based application. I have noticed a strange behaviour which is that when the camera display appears for the first time then it appears without the status bar and a gray frame appears instead.
    When one navigates to another screen from the RootViewController by tapping a button on an overlying view and returns back then the staus bar appears
    Is it due to the transform that I am applying or any other reason behind it?
    Thanks
    Arnieterm
     
  6. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #6
    Not sure about your status bar question. In my case I hide the status bar. Maybe the Camera picker expects the status bar to be hidden.
     

Share This Page