troubleshooting Question

UIImage Drawing anomaly (Possibly something to do with CGContext)

Avatar of codevomit
codevomit asked on
Swift ProgrammingiPhone
36 Comments1 Solution1924 ViewsLast Modified:
Hi,

I'm having a anomaly when altering the pixels of a UIImage, I've drawn a box and then I've colored every pixel of the image with a light blue, so the box should forever be gone right? Wrong!

What you'll see is the screen being fully blue, then the box showing it's unwelcome face up in a few seconds, then the screen becomes fully blue, going backwards and forwards.

I'm thinking this maybe something to do with the CGContext, does this store the paths I used previously to fill in a poly?

I've supplied the a cut down version of my project that will demo my problem, it's triggered by a touches finished, so you will have to click down to see the show.

Thanks in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 36 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 36 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros