views:

145

answers:

1

I have;

CGContextRef context = UIGraphicsGetCurrentContext();

Now I want to know the width/height of the the context (in pixels); any way to do this?

+3  A: 

You can't get that information from the CGContextRef object, but from the surrounding frame object:

self.frame.size.width
self.frame.size.height
vog