ACEDrawingView icon indicating copy to clipboard operation
ACEDrawingView copied to clipboard

loadImage() issue on retina iPad

Open elprl opened this issue 9 years ago • 2 comments

Hi, thanks for sharing this code. It's a great little tool. I wanted to use this code for a simple colouring-in tool for kids but I'm having issues with it on retina ipads. I'm loading a UIImage into ACEDrawingView with the loadImage:(UIImage *)image method but once I start drawing with the brush I noticed the original uiimage starts to get messed up. Looks like the drawRect is painting the wrong area of the original image on retina displays only. (You have to paint a few longs lines before you see it).

Am I just using the code wrong?

elprl avatar Aug 01 '14 16:08 elprl

Looks to happen only in landscape mode.

elprl avatar Aug 01 '14 17:08 elprl

screen shot 2014-09-18 at 12 38 43 I'm experiencing the same problem on iPhone with retina display after loading a previous drawing (I'm working in landscape mode). I want to add that the problem disappeared as soon as I removed the auto layout constrains on the view.

GreyHands avatar Sep 18 '14 10:09 GreyHands