Untitled

Apple Developer Documentation

Apple Developer Documentation

frame과 Bounds는 UIView의 속성 중 하나로, CGRect 타입이다.

→ 사각형이기 때문에 originsize를 갖는다. 뷰의 위치와 크기를 나타낸다.

frame


describes the view’s location and size in its superview’s coordinate system

슈퍼뷰(상위뷰, 한단계 위의 View))의 좌표시스템 안에서의 위치와 크기를 나타낸다.

→ frame의 size가 바뀌면 origin도 바뀔 수 있다.

https://babbab2.tistory.com/44

https://babbab2.tistory.com/44

Untitled

Bounds


describes the view’s location and size in its own coordinate system

자신만의 좌표 시스템 안에서 나타낸다.