Questions tagged [ios-camera]

285 questions
0
votes
1 answer

Application terminating while clicking camera use image button objective c

My application terminates showing Message from debugger: Terminated due to signal 9 after doing rigorous searching didn't find any thing , i have also checked for memory leaks but does not find any.. Problem Statement - When i open camera from my…
0
votes
1 answer

AVCapturePhotoSettings not accepting accept NSDictionary element

not sure what I am doing wrong, I wanna create a simple custom camera, I'm creating the AVCapturePhotoOutput attaching it to AVCaptureSession, then creating AVCapturePhotoSettings with minimum settings to make taking a picture work, see code…
RollRoll
  • 8,133
  • 20
  • 76
  • 135
0
votes
1 answer

Conditional cast from '[AVCaptureDevice]' to '[AVCaptureDevice]' always succeeds. Yellow warning

I have this bit of code and it's throwing a yellow warning. I can't work out how to code it so the yellow warning goes away. Trying to clean up my code after converting from Swift-2 -> 3 -> 4. override func viewDidLoad() { …
0
votes
1 answer

Turn camera picture depending on the device orientation (Xamarin.iOS)

I want to make a Xamarin.iOS app where I can capture pictures like the camera... My app supports only portrait. I want to turn the captured picture to portrait if the camera was landscape when i capture the picture. Does someone know how I can do…
DerStarkeBaer
  • 669
  • 8
  • 28
0
votes
1 answer

UIButton are not visible over camera stream (Xamarin.iOS)

I made an Xamarin.iOS app where I have a camera stream. In my storyboard I have a UIButton to take a picture and one to switch the cameras. But when I start my app the buttons are under the camera stream. Does someone know how to place the…
DerStarkeBaer
  • 669
  • 8
  • 28
0
votes
1 answer

Is there any neat way I can edit the content of camera preview and show?

I want to edit the camera preview stream, and directly show it on the screen. Now I can get the content through AVCaptureVideoDataOutput, but how can I edit it and use the edited stream instead of the original stream? I have tried convert the…
daquexian
  • 169
  • 3
  • 17
0
votes
0 answers

THREAD 1: signal SIGBART, when implementing camera function

I'm having some trouble with implementing a camera function. I get signal SIGBART error in my @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate class, and I can't figure out why. I've tried searching in here, but without luck.…
Guffas
  • 9
  • 3
0
votes
1 answer

AVFoundation camera crashing while switching to front camera (refreshing camera)

I am a new bee to iOS, working on simple application with swift, In that I need a custom camera. I am using AVFoundation but the app is showing black screen for long time, then it's loading the camera. here is my code func prepareCamera() { …
Uma Achanta
  • 3,669
  • 4
  • 22
  • 49
0
votes
1 answer

Is it possible to should be able to move the crop square in side a uiimagepickercontroller in camera

[1]: https://i.stack.imgur.com/NCMd0.jpg In the above image how can i should be able to move the crop square, not the image. enter image description here
Amutha Kumari
  • 125
  • 1
  • 3
  • 12
0
votes
1 answer

Launched application settings but updating app permission crashing the app

I have launched application settings using UIApplication.shared.open(URL(string: UIApplicationOpenSettingsURLString)!, options: [:], completionHandler: nil) I am using this to enable camera when the user has denied this once. In settings app, when…
Tej
  • 52
  • 8
0
votes
1 answer

iphone get both camera image for iphone 7 plus?

Can I get both images of regular and wide angle camera at the same time? What about videos, can I get video streams from both cameras?
weijia_yu
  • 965
  • 4
  • 14
  • 31
0
votes
1 answer

UIImagePickerController takePicture Dismisses Controller

I have a custom UIImagePickerController that works nicely, only I am facing one issue that I feel should be fairly simple - I just have yet to figure out the solution. Upon touching my custom added "photo" button, I have it targeted to the build in…
Will Von Ullrich
  • 2,129
  • 2
  • 15
  • 42
0
votes
1 answer

Camera option is disabled in settings but getting PHAuthorizationStatus as PHAuthorizationStatusAuthorized

// Checking for authorization PHAuthorizationStatus status = [PHPhotoLibrary authorizationStatus]; if (status == PHAuthorizationStatusAuthorized) { // Access has been granted. } else if (status == PHAuthorizationStatusDenied) { // Access…
0
votes
1 answer

Shrink image in iphone 7 xamarin ios?

I am working in xamarin.ios. I am capturing a picture with help of camera and trying to upload it on server. But when I am trying to upload it on server I am getting "TargetInvocationException". But when I am running same code on Ipad everything is…
anand
  • 1,399
  • 5
  • 23
  • 55
0
votes
2 answers

Show custom alert for camera and gallery permission swift 3

May be this is duplicate question but I actually didn't find exact solution. I have camera and photo gallery collection view on the same screen.see this UI When I land to this screen, I get two alerts: one for camera access and other for photo…
Sumeet Purohit
  • 657
  • 1
  • 7
  • 16