Questions tagged [ios-camera]
285 questions
157
votes
2 answers
How to access iOS simulator camera
I am making a camera app. I need to test the app in the simulator but I can't access the iOS simulator camera.
If not possible in the simulator means I need to access my system camera. Whether it is possible?
I tried UIImagePickerController but it…

R M
- 1,741
- 2
- 10
- 6
70
votes
8 answers
Detect existence of camera in iPhone app?
I'm writing an iOS app, and I need to be able to detect if the device has a camera. Previously, I would check if the device is an iPhone or not, since only the iPhone has a camera - but with the launch of the iPod Touch 4 this is no longer a viable…

Origamiguy
- 1,294
- 2
- 13
- 19
53
votes
2 answers
App crashes on enabling Camera Access from Settings iOS 8
I am developing an app for iPhone, it is using camera for scanning barcodes and taking pictures. When we don't have Camera access and the user enables Camera Access, the app crashes and the re-opens.
Can you folks help me to fix this?
Thanks in…

Nuraiz
- 1,060
- 6
- 17
- 35
36
votes
2 answers
How to turn the iPhone camera flash on/off?
How can I turn the iPhone's LED camera flash on/off programatically?

Shahid Aslam
- 2,585
- 3
- 24
- 31
26
votes
2 answers
SwiftUI Custom Camera View?
I'm playing with SwiftUI and trying to build a custom camera with it. I found tutorials on how to use system built-in camera with SwiftUI(using ImagePickerController) and how to build a custom camera with storyboard.
I've already built a struct…

Q_Chang
- 389
- 3
- 6
18
votes
4 answers
Flutter Camera Overlay
I've been doing some research for an upcoming project and would like to render the camera view behind a custom shape/semi-transparent img to act as a guide when taking pictures.
Does anyone know of a flutter camera plugin or tutorial that explains…

Pieter
- 4,721
- 6
- 19
- 18
18
votes
2 answers
How can I prevent iOS apps from resetting after changing Camera permissions?
Currently, when I change the camera permissions for my app in Settings, then navigate back to my app, the app will force a refresh and I will lose my place in the app. I follow these steps exactly:
Open an app that uses the camera permission.…

nickjm
- 412
- 1
- 10
- 21
12
votes
4 answers
iOS 7.1 imagePicker CameraFlashMode not indicating Flash state
I have iPhone application which overlays the camera with custom view.
I have a button to switch between camera flash mode, this is the code
switch ([self.imagePickerController cameraFlashMode]) {
case UIImagePickerControllerCameraFlashModeAuto:
…

Eliktz
- 572
- 1
- 4
- 27
11
votes
5 answers
iOS Camera permissions doesn't appear under settings in some devices
I'm having some issues trying to use the camera. The problem is that some devices show me the Camera entry under settings, and some others don't. In those devices where the Camera switch doesn't appear, I'm not able to use the camera, since it…

lucaslt89
- 2,431
- 1
- 20
- 30
10
votes
3 answers
Playing camera sound only once for for multiple images using AVFoundation OR Simply mute/suppress sound programmatically
In reference to Question 1,Question 2,Question 3, I am having similar question on same platform.
I am capturing multiple images (5 images - Kind of Burst mode in 1.5 sec) using AVFoundation, I am able to snap 5 images successfully but it makes…

iLearner
- 1,670
- 2
- 19
- 45
8
votes
2 answers
face detection iOS from camera
I receive an image view
-(void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info
{
NSString *mediaType = info[UIImagePickerControllerMediaType];
[self…

mohamed
- 243
- 3
- 14
7
votes
1 answer
Multiple AVCaptureVideoDataOutput in same AVCaptureSession
I was wondering if it's possible to add multiple AVCaptureVideoDataOutput to AVCaptureSession with a single camera device input?
My experiments indicate that adding a second VideoDataOutput will cause canAddOutput return NO. But I couldn't find…

xuguo
- 1,816
- 1
- 11
- 15
7
votes
2 answers
Read camera permission for iOS in Xamarin
I have an iOS app developed in Xamarin. When the app does not have permission to access the microphone, if the user tries to access the microphone from the app, I check the settings using AVAudioSession.SharedInstance().RequestRecordPermission…

Sakina Sugra
- 133
- 1
- 8
7
votes
2 answers
UIImagePickerController Taking Picture From Camera - Default to square
Want to provide only square photo capture option from our app. Right now with the below code its giving square crop option after capturing. But want it to be exactly like default camera square option. Also we don't want to show anything other than…

Madhu V Swamy
- 263
- 2
- 14
6
votes
0 answers
How to interpret lens distortion coefficients in iOS Portrait mode EXIF data
iOS provides lens distortion information for images obtained with the iPhone depth cameras, specifically the front-facing TrueDepth camera and the rear-facing Portrait mode camera. These lens distortion coefficients are stored in the…

David G.
- 371
- 4
- 11