frame3 UIKit: Frame과 Bounds 3 UIKit: Frame과 Bounds 2 UIKit: Frame과 Bounds 2UIKit: Frame과 Bounds 1 UIKit: Frame과 Bounds 1UIKit으로 UI를 그리다 보면 심심찮게 보이는Frame과 Bounds 막상 사용해보면 큰 차이를 못 느낀다...공식 문서를 살펴보면FrameThe frame rectangle,which describes the view’dev-arthur.tistory.com지난 글에 이어서이번 마지막 글에서는Bounds의 Origin에 대해 알아보려고 한다. self.view.backgroundColor = .greenself.view.addSubview(self.childView)self.childView.backgroundColor = .yellowse.. 2025. 1. 13. UIKit: Frame과 Bounds 2 UIKit: Frame과 Bounds 1 UIKit: Frame과 Bounds 1UIKit으로 UI를 그리다 보면 심심찮게 보이는Frame과 Bounds 막상 사용해보면 큰 차이를 못 느낀다...공식 문서를 살펴보면FrameThe frame rectangle,which describes the view’s location and size in its superview’s coordinadev-arthur.tistory.com이전 글에서는 Frame과 Bounds가 각각 어떻게 설정되는지 비교를 했다. 그 과정에서 Frame만 있어도 위치와 크기를 다 설정 가능한데,왜, 굳이 Frame과 Bounds를 나눴지?라는 의문이 생겼다. 그래서 Frame의 공식문서 설명을 살펴보면무섭게 빨간색으로 Warning이.. 2025. 1. 10. UIKit: Frame과 Bounds 1 UIKit으로 UI를 그리다 보면 심심찮게 보이는Frame과 Bounds 막상 사용해보면 큰 차이를 못 느낀다...공식 문서를 살펴보면FrameThe frame rectangle,which describes the view’s location and size in its superview’s coordinate system.부모뷰의 좌표계 안에서 뷰의 위치와 크기를 표현하는 사각형 틀BoundsThe bounds rectangle,which describes the view’s location and size in its own coordinate system.자신의 좌표계 안에서 뷰의 위치와 크기를 표현하는 사각형 범위 뭔가 같으면서도 다른 느낌...? 자세하게 알아보기전에 UIKit의 좌표계에 대해 .. 2025. 1. 5. 이전 1 다음