Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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:
CGContextRef
frame
self.frame.size.width self.frame.size.height