How can I change the underlying points coordinate space of the iPad in such a way, that 1 point equals 2 pixels?
views:
21answers:
2
A:
hum!
static __inline__ CGPoint CGPointMake2(CGFloat x, CGFloat y)
{
CGPoint p;
p.x = x*2; // twice the pixels.
p.y = y*2;
return p;
}
dhanke
2010-10-11 12:16:32
A:
Apply a CGAffineTransformScale
to whatever view you are using:
myView.transform = CGAffineTransformScale(myView.transform, 2.0, 2.0);
Here is a great blog post on the use of transforms:
http://iphonedevelopment.blogspot.com/2008/10/demystifying-cgaffinetransform.html
Josh Hinman
2010-10-12 01:04:53