# bounds

Frame vs Bounds 1탄
frame과 bounds의 차이점에 대해 헷갈릴 수도 있으며 면접질문으로 자주 나오기에 한번 정리를 해보겠다먼저 각각 공식문서를 통해 파악해보자Frame의 정의는 아래와 같다The frame rectangle, which describes the view’s locat

Frame, Bounds 알아보기 + CGRect, CGPoint, CGSize...
// Swiftvar str = "123"var one = str0print(one) // Error : 'subscript' is unavailable: cannot subscript String with an Int, see the documentation comm
Frame과 Bounds의 차이
Frame과 Bounds는 UIView의 인스턴스 프로퍼티 이다. 사진과 같이 Frame, Bounds 모두 CGRect 타입이다. '사각형' 으로 그려진다. Frame의 특징 SuperView(상위뷰)를 기준으로 위치와 크기를 나타낸다. 사진과 같이 View를 3

Frame vs Bounds (feat. origin, size)
안녕하세요!오늘은 Frame과 Bounds의 차이을 알아보도록 하겠습니다.먼저 Frame에 대해서 알아보도록하겠습니다.Frame에서 중요한 것은 SuperView 입니다.SuperView를 기준으로 정해지기 때문입니다!FirstView의 frame의 origin을 알아

Aug 27, 2021, TIL (Today I Learned) - ScrollView and bounds
참고:stackoverflow - What does contentOffset to in a UIScrollView

Aug 25, 2021, TIL (Today I Learned) - 이미지 전환과 UIPageControl 그리고 데이터 전달
1layout: posttitle: "Aug 25, 2021, TIL (Today I Learned) - 이미지 전환과 UIPageControl"summary: "ImageTransition - UIPageControl"author: inwoodevdate: '202

June 17, 2021, TIL (Today I Learned) - Frame, Bounds
frame과 bound는 가족사진 액자라고 이해하면 쉽습니다. frame위치를 조정하면 액자 안에 있는 사진의 위치 또한 같이 바뀝니다. 반면에 bound는 사진을 제외한 엑자라고 보시면 됩니다. bound 위치를 바꾸면 사진은 움직이지 않습니다. 다만 액자만 움직이

[iOS] Frame & Bounds
첫 iOS 포스팅이다다음주 퇴사를 앞두고 있는데 5개월동안 iOS 개발을 나름대로 해보면서 새롭게 알게된 내용들을 틈틈히 굿노트에 적어두었고, 그 내용들을 하나씩 정리해보려 한다.UIView의 animation 과 draw 등을 개발하면서 frame 과 bounds 개