I use a third party Code , this code has such a paragraph : view.superview.bounds = view.bounds
I don't know what it means ?
Could you help me please ?
I use a third party Code , this code has such a paragraph : view.superview.bounds = view.bounds
I don't know what it means ?
Could you help me please ?
view
is your current view.
view.superview
is currentView's parent view.
The bounds rectangle, which describes the view’s location and size in its own coordinate system
so this means your current view's bounds is being assigned to it's parent view's bounds. After this assignment, both views size are the same.
Here is a very good illustration: https://stackoverflow.com/a/28923657/291240