UIScrollView의 AutoLayout 설정 시도
Development Environment
Language
Swift
Process
Step 1: Add Scroll View and View from the object library
Step 2: Tap to select Scroll View and then tap Pin where Auto-Layout setting appears. After that, set Auto layout like following figure.
※Please make sure that remove check mark on "Constrain to margins"and border surrounding the white box turns to be red colour. Then, press "Add 4 Constraints"to confirm your setting.
Step 3: Exactly do the same setting as Step 2 to View under Scroll View. Tap to select View under Scroll View and then tap Pin where Auto-Layout setting appears. After that, set Auto layout like following figure.
※Please make sure that remove check mark on "Constrain to margins"and border surrounding the white box turns to be red colour. Then, press "Add 4 Constraints"to confirm your setting.
Step 4: Select View under Scroll View and press control key and drag to "View". After that, select Equal Widths and Equal Height like following gif image.
Step 5: Change the priority of Height from Step 4. Change it from 1000 to 250 like following gif image.
※If your Scroll View size is not the same as View, warning still appears and you have to go Step 6 to fix. If the size is same, warning will disappear and finally finish setting Auto-Layout of Scroll View. Congrats!
(Optional)Step 6: If the size of Scroll View is not the same as View Size, warning will appear. Tap yellow warning icon to fix constraint like following gif image. Then, done with Auto-Layout of Scroll View.
다행이다!!!!!
Reference
이 문제에 관하여(UIScrollView의 AutoLayout 설정 시도), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/law/items/a4ca1b5f04e7475d0cb3
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Step 1: Add Scroll View and View from the object library
Step 2: Tap to select Scroll View and then tap Pin where Auto-Layout setting appears. After that, set Auto layout like following figure.
※Please make sure that remove check mark on "Constrain to margins"and border surrounding the white box turns to be red colour. Then, press "Add 4 Constraints"to confirm your setting.
Step 3: Exactly do the same setting as Step 2 to View under Scroll View. Tap to select View under Scroll View and then tap Pin where Auto-Layout setting appears. After that, set Auto layout like following figure.
※Please make sure that remove check mark on "Constrain to margins"and border surrounding the white box turns to be red colour. Then, press "Add 4 Constraints"to confirm your setting.
Step 4: Select View under Scroll View and press control key and drag to "View". After that, select Equal Widths and Equal Height like following gif image.
Step 5: Change the priority of Height from Step 4. Change it from 1000 to 250 like following gif image.
※If your Scroll View size is not the same as View, warning still appears and you have to go Step 6 to fix. If the size is same, warning will disappear and finally finish setting Auto-Layout of Scroll View. Congrats!
(Optional)Step 6: If the size of Scroll View is not the same as View Size, warning will appear. Tap yellow warning icon to fix constraint like following gif image. Then, done with Auto-Layout of Scroll View.
다행이다!!!!!
Reference
이 문제에 관하여(UIScrollView의 AutoLayout 설정 시도), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/law/items/a4ca1b5f04e7475d0cb3텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)