I have a view hierarchy that looks like this (based on other answers and Apple's extended AutoLayout guide for working with UIScrollView):
ScrollView requires 2 steps :
Step 1 worked fine, and this was the result:
No problem with the position and size as expected. I just need to determine the size of the content (content height and content width) in the Builder interface with Step 2 .
Now I add restrictions affecting all 4 edges of the ScrollView like this:
Suddenly, ScrollView no longer knows the position and size (frame).
I looked at other answers and followed various steps, but cannot solve this problem. Sorry, I can’t post screenshots of the storyboard due to privacy issues.
. 3 :
, 1. .
, , "" . ContentSize. , "".
, :
. , , , , , , ... 100 x 100, - ... , , - .
subview , , 100 x 800, , (), ... 800 .
: - , - , ( view contentSize).
, !
, , , 0.
, , , , , 0.
, , " " "".
Source: https://habr.com/ru/post/1677210/More articles:Slim Controller request, response and arguments unavailable - phpAngular2 Google Maps panTo not working (does nothing) - angularHow to get DataSource length in native-native? - reactjsHow to test in Junit 4.12 PSQLException with @Test annotation (expected = PSQLException.class) - javaRunning JS code in a limited context - javascriptXamarin "xcodebuild does not display as expected" - xamarinДоля OpenCV С++ объекта с Python - c++overload operators new / new [] delete / delete [] globally C ++ - c ++Python3.5 BeautifulSoup4 получает текст из 'p' в div - htmlAWS lambda says it supports python 2.7 and 3.6, but 3.6 is not in amazon linux ami repos - pythonAll Articles