Capturing UIScrollView off screen content
问题 I'm working with a UIScrollView which can be used in either orientation and contains a number of subviews: // in viewDidLoad mainScrollView = (UIScrollView *)self.view; mainScrollView.contentSize = CGSizeMake(1024, 1432); I'm trying to capture a screen shot of the entire scroll view with all its subviews, including what is not currently visible on screen. The following captures only what is visible on screen at the time of capture: // make screenshot UIGraphicsBeginImageContext(mainScrollView