I am creating an image frame using CGRect. I want to center the created rectangle.
I looked here, as well as in the Apple documentation for the best way to do this, and found CGRectGetMidY and CGRectGetMidX that get the center coordinates.
When I try to implement this in my own code, I run into problems. I get the size of the property not found on the object type error UIIMageView
ios objective-c uiimage cgrect
aramirez
source share