0

I have a requirement like add one circle to the camera view and capture the photo in that circle only. How can I do this.Thanks in advance.

krishna
  • 97
  • 1
  • 7

1 Answers1

0

You can OverLay a view above your View Please refer following Link

iPhone sdk - Use a custom camera

And for taking the pic in a circle you can take screenshot of that particular area when user slick on take picture button

UIGraphicsBeginImageContextWithOptions(vw.frame.size, NO, [[UIScreen mainScreen] scale]);
CGContextRef context = UIGraphicsGetCurrentContext();
[vw.layer renderInContext:context];
UIImage * img UIGraphicsGetImageFromCurrentImageContext();

Hope this will help you to build your own logic

Community
  • 1
  • 1
Shashank Kulshrestha
  • 1,556
  • 17
  • 31