UIView's frame, bounds, center, origin, when to use what?
- by Boon
UIView has the concept of frame, bounds, center, and origin, and they all seem to be interrelated. Most of the time, I deal with frame when setting the position and size of a UIView (or subclass). I understand that the frame is using global coordinate system and the bounds is using coordinate of the local view (therefore it's x and y are 0, but not always), but it's still confusing to me when to use what.
Question: Under what context (and what's the right time) the other properties (bounds, center, origin) should be used?