I want to create video from my screen and for that I'm going to capture the view but I don't want to use renderInContext:
due to some reason. I'm using now drawViewHierarchyInRect:
, but this is limited to iOS 7 and my app supports earlier iOS versions, too. Will I be fined for using drawViewHierarchyInRect:
?
this is my code
UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, 0);
[self drawViewHierarchyInRect:self.bounds afterScreenUpdates:YES];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();