Camera controls not showing on device

royherma

I went over the picker properties and examples, and set up my picker like so (using xcode 6.1, running on my device ,iphone 5s ios8):

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.showsCameraControls = YES;

But there crop rect/panoroma/etc controls arent showing up on my device's camera screen.

I want this: enter image description here

but getting this :(

enter image description here

What am i missing?

Thanks!

AstroCB

The controls you show in the first screenshot are not available with the UIImagePickerController because they are part of a custom view implemented by Apple for the Camera app and are not exposed in this class.

This frees you to customize the view as you wish with the controls that you see fit for your application, and Apple recommends that you do so. If you want to do this, you should first set the showsCameraControls property to NO:

The default value of this property is YES, which specifies that the default camera controls are visible in the picker. Set it to NO to hide the default controls if you want to instead provide a custom overlay view using the cameraOverlayView property.

You can then design a custom view that utilizes the the takePicture: method and handles output accordingly.

I'd take a look at the class documentation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Camera controls not showing on device

From Dev

If not have a camera in device, showing black background color on android

From Dev

What controls a device controller?

From Dev

Form not displaying controls on device

From Dev

Radio controls not showing in WebBrowser

From Dev

Always showing video controls

From Dev

UIImagePickerController trim controls not showing

From Dev

Orthographic camera and zoom controls in SceneKit

From Dev

Android Camera (photos not showing)

From Dev

UISearchBar not showing on device but is showing in simulator

From Dev

Only Showing contentOverlayView in AVPlayerViewController when controls are showing

From Dev

Krypton Toolkit controls not showing in form

From Dev

Video player controls not showing in sharepoint

From Dev

Metro UI controls not showing on form

From Dev

No controls showing upon opening form

From Dev

SwitchCompat not showing on device

From Dev

AppIcons not showing on device

From Dev

Nodes Not Showing Up On Device

From Dev

Camera orientation in samsung device issue

From Dev

WebRTC - Change device/camera in realtime

From Dev

How to check is device camera enabled?

From Dev

Camera not stretching to width of android device

From Dev

in Unity, Android Device Camera not working

From Dev

Combine camera pan to with touch controls in Unity

From Dev

showing camera capture image to gridview

From Dev

Showing UIView inside a Camera View

From Dev

Qt Quick controls 2.0 for embedded device

From Dev

Xcode 6.3 showing Ineligible Device

From Dev

Android device is not showing the background image