Questions tagged [cameraoverlayview]

The custom view to display on top of the default image picker interface.

You can use an overlay view to present a custom view hierarchy on top of the default image picker interface. The image picker layers your custom overlay view on top of the other image picker views and positions it relative to the screen coordinates. If you have the default camera controls set to be visible, incorporate transparency into your view, or position it to avoid obscuring the underlying content.

This property is set to nil by default.

You can access this property only when the source type of the image picker is set to UIImagePickerControllerSourceTypeCamera. Attempting to access this property for other source types results in the throwing of an NSInvalidArgumentException exception.

22 questions
12
votes
1 answer

UIImagePickerController's cameraOverlayView is offset after taking photo

When you implement a cameraOverlayView for a UIImagePickerController, this view appears while you're taking the photo and after the photo has been taken, providing you with an opportunity to cancel or retake the photo. The problem I'm seeing is if…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
4
votes
0 answers

ios7+ how to add contrainsts to uiimagepickercontroller cameraOverlay

I'm quite surprised. I didn't find anything remotely tackling the issue on SO. I would have imagined that many people may have tried that before me. That must only mean one thing ... It's trivial and I can't make it :( How do I add constraints to…
GrandSteph
  • 2,053
  • 1
  • 16
  • 23
3
votes
1 answer

Positioning a UIImagePickerController cameraOverlayView on top of the camera preview

I want to add an overlay to my UIImagePickerController, but I only need it to cover the camera preview, and not the camera controls at the top or bottom. I cannot find anywhere a way to do this as the top/bottom controls heights are different on…
SwiftCODA
  • 172
  • 2
  • 16
3
votes
1 answer

how to add a image to camera overlay view (swift4)

My code right here displays a red line on the top of the imagePicker when taking a photo. I want to do the same thing but add a image in the middle of the red line. See pic. I added the word image in a yellow box as a example of what I am trying to…
user8105388
3
votes
1 answer

How to constraint overlay to UIImagePickerController camera preview only

I am using UIImagePickerController() to display camera in my swift iOS app and let user take pictures. I would like to show a grid as overlay so I started implementing one as .cameraOverlayView The problem is that the overlay image or views will…
Kashif
  • 4,642
  • 7
  • 44
  • 97
2
votes
0 answers

IOS Swift UIImagePickerController. How to access the bounds of the live camera feed?

Trying to create an app that uses the UIImagePickerController for its picture taking activities. I'm using a cameraOverlayView to accomplish this (for now, it just contains two buttons, one for Taking/Keeping the Picture and the other one for…
2
votes
1 answer

Camera Rotation and OverlayView in iOS8

I am experiencing an issue when using the iPad Camera in iOS 8. I've seen some older questions and a thread on the Apple Developer Forums from during the beta but still haven't find a solution. There seems to be two parts to this issue. 1) The…
2
votes
0 answers

iOS full screen camera overlay

I am new to objective-c and have been searching for an answer to this question for a while... I am creating a photo-sharing app and I want the camera to be full-screen. I have used the following code to hide the default camera overlay and create my…
2
votes
1 answer

How to do properly cropping of UIImage taken with UIImagePickerController?

This is camera overlay for my app, The yellow square is to indicate user that only photo inside this part (in camera) will be saved. It's like crop. When I saved that capture image, it'll save zoomed photo [a big zoomed on photo], What I found is,…
Hemang
  • 26,840
  • 19
  • 119
  • 186
2
votes
0 answers

Using cameraController.cameraOverlayView versus cameraController.view

Say you bring up the camera on an iPhone: self.cameraController = [[UIImagePickerController alloc] init]; [self presentViewController:self.cameraController animated:NO completion:NULL]; It's easy enough to add a button to that. But interesting you…
Fattie
  • 27,874
  • 70
  • 431
  • 719
1
vote
2 answers

How To add OverlayView in Xamarin IOS Live Camera

I am accessing the live camera but i want to add an overlay above it, to take a specific picture and save the picture insde an overlay. My goal is as shown on the picture below
Assegd
  • 106
  • 18
1
vote
0 answers

Fill different iPhones screen when using camera view for augmented reality Xcode

I am working on an app which places labels of cities on top of the cameraView for augmented reality. When I open the camera I hide the controls and navigationBar and toolBar. I use the following code I found online to resize the camera view to…
1
vote
1 answer

Custom shutter button in cameraOverlayView not executing

I am making a custom camera in Swift. I declared it global like this: let image = UIImagePickerController() I have made OverlayVC (UIViewController) in IB. Made a shutter button and hooked it up like this: @IBAction func shutterTapped(_ sender:…
Kashif
  • 4,642
  • 7
  • 44
  • 97
1
vote
1 answer

UIImagePickerController custom FlashMode button is not working on IOS 10 (swift)

I know that a question of this type is already asked but I Debugged it in bit detail, and i came to this point that when i switched this flag off self.picker.showsCameraControls = false then the custom flash button doesn't respond but if I'll…
Steve
  • 1,022
  • 2
  • 9
  • 30
1
vote
1 answer

UIButton inside UIImagePickerController.cameraOverlayView not responding

I have got a UIButton inside a UIView that I set as the cameraOverlayView. I also scaled the uiimagepicker cameraView to cover the whole screen (as you can see below in the picture). Here's my code : // CameraViewController.m -…
1
2