UIScrollView에서 Autolayout 적용하기
아이폰도 다양한 사이즈의 기기들이 출시되면서 Autolayout 없이는 개발하기 힘들어졌습니다. Autolayout 적용하면서 제일 애먹었던 곳은 UIScrollView였습니다. iPhone6+ 에서는 한 화면에서 볼 수 있는 컨텐츠이지만 그 보다 작은 iPhone4S, iPhone5 기기에서는 ScrollView 없이는 볼 수 없는 경우가 있습니다. 다른 뷰 Autolayout 적용하는 것과 살짝 다른 점이 있는데 아래에 소개하겠습니다. ScrollView 내에 ContentView 만들기먼저 UIView에 SubView를 올리듯 UIScrollView에 뷰를 올리면 위와 같이 Scrollable Content Size Ambiguity 라는 에러를 마주하게 됩니다. UIScrollView 에 서브뷰를..