I have;
CGContextRef context = UIGraphicsGetCurrentContext();
Now I want to know the width/height of the the context (in pixels); any way to do this?
I have;
CGContextRef context = UIGraphicsGetCurrentContext();
Now I want to know the width/height of the the context (in pixels); any way to do this?
You can't get that information from the CGContextRef
object, but from the surrounding frame
object:
self.frame.size.width
self.frame.size.height