I am capturing a screenshot of the screen using:
Code:
CGRect contextRect = CGRectMake(-100, -100, 1024, 768);
UIGraphicsBeginImageContext(contextRect.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
The screen is being captured at the correct size, but the placement is off. Instead of starting at origin (-100,-100) it is starting at (0,0).
Any ideas?