• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIScrollView to UIImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIScrollView to UIImage


  • Subject: UIScrollView to UIImage
  • From: Trygve Inda <email@hidden>
  • Date: Wed, 17 Jul 2013 18:56:55 -0700
  • Thread-topic: UIScrollView to UIImage

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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: UIScrollView to UIImage
      • From: Cody Garvin <email@hidden>
    • Re: UIScrollView to UIImage
      • From: Roland King <email@hidden>
  • Prev by Date: Re: LATIN SMALL LETTER U WITH DIAERESIS
  • Next by Date: Re: UIScrollView to UIImage
  • Previous by thread: Re: LATIN SMALL LETTER U WITH DIAERESIS
  • Next by thread: Re: UIScrollView to UIImage
  • Index(es):
    • Date
    • Thread