I have this code:
CGRect visibleRect;
visibleRect.origin = mainViewController.scrollView.contentOffset;
visibleRect.size = mainViewController.scrollView.bounds.size;
I want to store the content inside visibleRect in a UIImage. Is that possible?
This code may work: