Philographer

후우... 이놈때문에 개고생했다


스크롤뷰 오토레이아웃


https://www.natashatherobot.com/ios-autolayout-scrollview/


https://www.youtube.com/watch?v=UnQsFlMGDsI




Content View의 Height 의 priority를 낮추고, Horizontal을 맞추는게 포인트


나머지는 꽉꽉차게!


//2016.06.29 

아직까지 마지막 inner view가 바닥에 어떻게 최소한 바닥에 붙는지 알아내지 못 했다.

임시 방편으로 autolayout의 height를 greater than or equal 을 이용하여 뷰의 y좌표, 화면크기를 계산해 바닥에 붙였다.


let screenHeight = UIScreen.mainScreen().bounds.height

let innerView2Ypos = self.innerView2.frame.origin.y

let navHeight = self.navigationBar.frame.height

self.innerViewConstraint.constant = screenHeight - innerView2Ypos - navHeight - 10



'IOS > Layout' 카테고리의 다른 글

IOS, iPhone 사이즈  (0) 2016.06.30
Scrollview Autolayout Bug  (0) 2016.06.28
no index path for table cell being reused  (2) 2016.06.27
Custom Modal 만들기 (alpha tip)  (0) 2016.06.26
Auto Resize UITextView in Cell  (0) 2016.04.21
댓글 로드 중…

트랙백을 확인할 수 있습니다

URL을 배껴둬서 트랙백을 보낼 수 있습니다