views:

43

answers:

1

I am drawing something into -drawRect of an UIView, and in this case I really want a certain amount of pixels. With the retina display, my view has a scaleFactor of 2.0 and when I draw something that is supposed to be 10 pixels heigh, it's actually 20 heigh. Is it okay to set the scale factor back to 1.0 to get a 1:1 mapping between points and pixels?

A: 

The official documentation says it's ok.

See 'Accounting for Scale Factors in Core Animation Layers' in 'iOS Application Programming Guide' for details.

jv42