Screen capture for TableView NOT only for visible cells but for all available cells
<p>I want to take screen shot of my tableview for all the number of cells NOT only for visible cells. number of rows are dynamic. </p>

<p>If there are 30 Rows then I want all 30 rows in one screen shot. 
I have tried with using tableview's total height as</p>

<pre><code>self.tblView.contentSize.height
</code></pre>

<p>with this code i m getting screen of all cells but Except visible cell all other part of screen is blank.</p>

<p>I am using below code to take screen shot</p>

<pre><code>- (UIImage *)captureView:(UIView *)view 
{
CGRect screenRect = [[UIScreen mainScreen] bounds];
screenRect.size.height=self.tblView.contentSize.height;

UIGraphicsBeginImageContext(screenRect.size);

CGContextRef ctx = UIGraphicsGetCurrentContext();
[[UIColor blackColor] set];
CGContextFillRect(ctx, screenRect);

[view.layer renderInContext:ctx];

UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

return newImage;
}
</code></pre>

<p>Thanks for any help.</p>
