Questions tagged [ios-camera]
285 questions
0
votes
2 answers
where to put setStatusBarHidden:YES if I don't want status bar when using camera
I am new to iOS development. I want the status bar hidden ONLY when I initiate camera so that the camera controls doesn't overlap with the status bar. I found solutions to adding this line:
[[UIApplication sharedApplication] setStatusBarHidden:YES…

user2898314
- 27
- 6
0
votes
4 answers
Capture picture automatically in IOS
My requirement is to write a sample IOS app that would automatically capture a camera picture. Using the various S.O links provided I did implement the below code -
My CameraViewController.h class is defined as follows :
@interface…

sim
- 249
- 7
- 17
0
votes
1 answer
Weird behavior when rotating AVFoundation stills on iOS
OK, so the following code works, but I don't get why. I am capturing still images from the Front camera using AVFoundation. I have this code before initiating capture:
if ([connection isVideoOrientationSupported]) {
AVCaptureVideoOrientation…

mirosval
- 6,671
- 3
- 32
- 46
0
votes
1 answer
iPhone camera controls are misaligned
For some reason my camera controls are misaligned and are displaying cut off at the top of the screen. Below is the code that I've implemented to use the camera, is there anything that could fix this?
- (void)takePhoto {
UIImagePickerController…
user1940321
0
votes
2 answers
save photo in webview to ios photo library
this is a case in which the photo is taken using camera and saved in library.
and the photo is opened in webpage for editing purpose and how to save back to device memory with another name? ie... Hw to save the photo displayed in webview to photo…

Gobi M
- 3,243
- 5
- 32
- 47
0
votes
1 answer
how to display the latest captured video thumbnail beside my capture button in camera app ios
I am building a camera based app. In this app I am able to display the latest captured image thumbnail beside the capture button. Now how to do the same with the video thumbnail, I mean how to display the latest captured video thumbnail beside my…

Rajesh
- 937
- 1
- 8
- 14
-1
votes
1 answer
Camera view hides TabView
I've implemented a simple camera view:
import SwiftUI
import AVFoundation
struct CameraView: View {
@StateObject var model = CameraModel()
var body: some View {
CameraPreview(camera: model).ignoresSafeArea().onAppear() {
…

Denis Sologub
- 7,277
- 11
- 56
- 123
-1
votes
1 answer
Swift Camera Zooming
I’m trying to zoom in if a button gets pressed.
Apple writes in its Documentation that I have to call lockForConfiguration() and unlockForConfiguration() when im changing the videoZoomFactor’s value. But I’m unsure if this is the right way to…

Daniel
- 568
- 3
- 15
-1
votes
1 answer
Detect when camera flash button is pressed?
I have a UIImagePickerController, used for taking pictures. There is a lightning button in the top left corner. When it is pressed, it brings up the three options: Auto, On, Off. These buttons refer to whether the flash mode is auto, on, or off. I…

Everett
- 387
- 1
- 4
- 17
-1
votes
1 answer
Draggable UIButtons like in iOS Camera app
I want to build a similar view as seen in the iOS Camera app, but I don't know which UI-Elements were used.
It can be found in the Instagram Story section as well.
Edit:
It should have the same behavior.
I tried to accomplish this with an…

user3653164
- 979
- 1
- 8
- 24
-1
votes
1 answer
Image picker crash - iOS Swift
I have some code that will select an image from either the user's photo library or from their camera and display it in an image view. I'm accessing the photo URL from the following line of code:
let pickedPhotoURL: URL =…

narner
- 2,908
- 3
- 26
- 63
-1
votes
1 answer
Store the video from Documents directory to Photos album
I have stored the video in Documents directory for temporary.
Here's the sample video path : file:///var/mobile/Containers/Data/Application/C651A13F-8F7C-4FCB-A1D9-D6D4C5F512E7/Documents/mergeVideo.mov
I would like to save this video in Album…

Manoj Arun S
- 543
- 5
- 17
-1
votes
1 answer
How do I use the AVFoundation framework to take a picture with the iPhone camera?
I need the iOS camera to take a picture without any input from the user. How would I go about doing this? This is my code so far:
-(void)initCapture{
AVCaptureDeviceInput *newVideoInput = [[AVCaptureDeviceInput alloc] init];
…

user1626438
- 133
- 5
- 14
-3
votes
1 answer
how to develop iOS camera view like bank deposit check
Could anybody tell me how I can develop the feature like deposit checks feature in Wells Fargo bank iOS app ? To implement it, should I customize the default UIImagePickerController or AVCaptureSession or something else? the camera function I want…

Jeremy Lin
- 1
- 1
-3
votes
2 answers
iOS default camera raw frames format
I am new to iOS development and I need to capture camera frames and convert them into yuv420 to perform h264 encoding. In my android application, I used the libyuv to do the conversions. Now I want to replicate the same thing with in iOS. I was…

Nav Nav
- 169
- 1
- 20