I have a view (testView) that is 400x320 and I need to take a screenshot of part of this view (say rect = (50, 50, 200, 200)). I am playing around with the drawViewHierarchy me
Try below line of code,
UIView *popSnapshot=[inputView snapshotViewAfterScreenUpdates:YES];