Gaurav Borole
Gaurav Borole

Reputation: 846

How to change height and width of camera view(UIImagePickerViewController) iOS?

I want to show camera in rectangle shape as a part of UItableViewCell to scan numbers.

How to change size of UIImagePickerViewController and add it as a subview?

Upvotes: 0

Views: 315

Answers (1)

Levi
Levi

Reputation: 7343

You can either add the UIImagePickerViewController as childViewController and add its view as subview to your cell (make sure you don;t repeat it on reuse), or you can do your scanner with AVFoundation, and add the AVCaptureVideoPreviewLayer as sublayer to your view's layer. I would chose the latter.

Upvotes: 1

Related Questions