Reputation: 846
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
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