At constant frequency, I want to get UIImage for some functionality
if (!_updateTimer) { _updateTimer = [[NSTimer scheduledTimerWithTimeInterval:self.updateFrequency target:self selector:@selector(updateLocations:) userInfo:nil repeats:YES] retain]; }
where self.updateFrequency = 1 / 20.0;
How can I get an image constantly every second without pressing the capture button?
I do not need the following code, since it will give the image size of iphone 320 * 480
CGImageRef cgoriginal = UIGetScreenImage(); CGImageRef cgimg = CGImageCreateWithImageInRect(cgoriginal, rect);
I need a complete image that everything is hung on the camera at every frequent interval.
thanks
Tariq source share