Monday, 15 June 2015

How to set Camera view aspect ratio in iOS

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.
  1. AVLayerVideoGravityResizeAspectFill may be used when setting the videoGravity
  2. 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