Sometimes we face problem with Camera view aspect ratio in ios. Solution to this problem is here.. Set its aspect ratio property to AVLayerVideoGravityResizeAspectFill. It actually preserve aspect ratio; fill layer bounds.
- AVLayerVideoGravityResizeAspectFill may be used when setting the videoGravity
- property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
For full blog of “How to set Camera view aspect ratio in iOS” visit FindNerd & for more iPhone blogs visit our iPhone development blogs section.
You can also ask questions & look for various programming queries along with their solutions including Android, C, Java, php programming questions and answers etc. as it is an effective technology forum also.
No comments:
Post a Comment