Reputation: 3445
I'm wondering why there're two types(bounds/frame) for describing a view. Since changing a view's bounds.size.* also changes that view's frame.size.* , and vice versa, this means the only difference lies between frame and bounds is their origin, so why do we need two distinct types for describing view geometry? and by the way what does bounds.origin means exactly?
Upvotes: 1
Views: 404
Reputation: 22820
Taken from CocoaDev :
Visual explanation (by Apple Developer Reference) :
Reference : http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/Concepts/ViewHierarchy.html
Upvotes: 7