iOS 개발을 하다보면 볼 수 있는 값의 부재를 나타내는 null / NSNull / nil / Nil.
View Controller를 Presenting 할 때 사용 할 수 있는 Modal presentation style을 알아보자.
iOS 기반의 어플리케이션 내에서 웹 기반 컨텐츠를 제공하려면 UIWebView 또는 WKWebView를 사용해야 한다. (iOS 8.0이상의 경우 WKWebView 사용 권장) 두 개의 View는 어떻게 동작하는지, 또 어떤 차이점이 있는지 알아보았다.
UIWebView
어플리케이션 내에서 웹 기반 컨텐츠를 보여주기 위해 사용되는 View이며, iOS 2.0 이상부터 사용할 수 있다.
UIView와 UIViewController를 상속하여 지정이니셜라이저를 작성할 때, 다음과 같은 에러와 마주하게 된다.
‘required’ 이니셜라이저인 ‘init(corder:)’를 정의해주어야 한다는 에러인데, 다음과 같이 정의만 해주면 에러 문구는 사라진다.
UIView 내의 레이아웃 관련 메소드인 layoutIfNeeded() / setNeedsLayout(). 두 메서드 모두 layoutSubViews()를 호출하는 메소드이다.
먼저, layoutSubViews()에 대해 알아보자.
layoutSubviews()
* Mobile Accessibility (모바일 접근성) 이란?