UIKit 3

[iOS / UIKit] View Controller Life Cycle(뷰 컨트롤러 생명 주기)

오늘 설명할 내용은 view controller life cycle입니다. iOS 앱 개발에 있어서 필수적으로 알아야 하는 개념입니다. 일반적으로 iOS 앱 화면에 view controller를 띄우는데 view controller에는 생명주기(life cycle)가 있고, 이를 고려해서 앱을 개발해야 합니다. view controller의 생명주기를 도식화하면 다음과 같습니다. 생명주기와 관련된 메서드들에 대해서 알아보겠습니다. 1. init(coder:) View Controller을 storyboard로 생성할 경우, view controller의 객체가 생성될 때 초기화 작업을 하는 메서드가 바로 init(coder:) 메서드입니다. init(coder:) 메서드는 view controller가 ..

UIKit 2022.03.25

[iOS / UIKit] Positioning Content Within Layout Margins

Positioning Content Within Layout Margins 레이아웃 여백 내에 콘텐츠 배치 Position views so that they are not crowded by other content. 다른 콘텐츠에 의해 몰리지 않도록 보기를 배치합니다. Overview Layout margins provide a visual buffer between a view’s content and any content outside of the view’s bounds. The layout margins consist of inset values for each edge (top, bottom, leading, and trailing) of the view. These inset values c..

UIKit 2022.02.05

[iOS / UIKit] Positioning Content Relative to the Safe Area

Positioning Content Relative to the Safe Area safe area에 대한 콘텐츠의 위치를 지정 Position views so that they are not obstructed by other content. 다른 내용에 방해되지 않도록 뷰를 배치합니다. Overview Safe areas help you place your views within the visible portion of the overall interface. UIKit-defined view controllers may position special views on top of your content. For example, a navigation controller displays a naviga..

UIKit 2022.02.05