I want to display grid line like the one which appears when a camera is open.I am using AVCaptureManager.Should i use core graphics to draw grid lines?what is the size of those grid lines?
thanks
I want to display grid line like the one which appears when a camera is open.I am using AVCaptureManager.Should i use core graphics to draw grid lines?what is the size of those grid lines?
thanks
You can indeed add a custom view as an overlay over your camera view to draw the grid using QuartzCore.
That is how I did it in my app Subvision:
The code I use to draw it (note: my grid is adjustable so it's can be 10x10, 2x2 etc):
In my GridView class, I have defined 2 properties numberOfRows and numberOfColumns:
Doing so means I can modify these two values and have infinitely adjustable grid subdivisions.
Create a UIImageView to use for the cameraOverlayView.
Use UIImagePickerController and an image as your 'grid lines'. When making your grid line image file, be sure to use a transparent background - not opaque white.