Does it do that even if the scroll view isn't scrolled at all but is at the 
very top? 

On 18 Jul, 2013, at 9:56, Trygve Inda <cocoa...@xericdesign.com> wrote:

> I am trying to take a "snapshot" of my UIScrollView and store it in a
> UIImage:
> 
> UIGraphicsBeginImageContext(scrollView.bounds.size);
> [scrollView.layer renderInContext:UIGraphicsGetCurrentContext()];
> UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
> UIGraphicsEndImageContext();
> 
> 
> This works for the most views, but when I try it with the UIScrollView, I
> just get a black image (but [image size] is correct).
> 
> Any ideas?
> 
> Trygve
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to