Disclaimer: I saw an SO method that involves adding a UIView (called contentView) to a UIScrollView and putting all that content. I do not want to use this technique, as I would like to understand why I have a current problem.
I have a UIScrollView by UIView by default, the UIViewController, its UIScrollView has 4 limitations: one on each side (trailing, top, lead, bottom) so that it binds the parent to the UIView. It works!
But when I want to add a UIImageView to a UIScrollView, and I want it to be glued to its parent sides (end, top, leader) + specific height, now I have a problem.
It says:
Scroll View: Has ambiguous scrollable height Scroll View: Needs constraints for: X position or width
, xcode , , UIScrollView UIImageView .
UIScrollView
UIImageView
UIScrollView, , xcode, . , UIImageView, UIScrollView, xcode, UIScrollView. , UIScrollView - .
, , , . - . .
: , IB. , , . IB, answer . UIImageView. , xcode UIScrollView, .
, : 1. . Superview 2. Scrollview UIView. Superview UIView. , . .
.
:
, scrollview x.
Source: https://habr.com/ru/post/1616976/More articles:deleting lines from a vector - regexJoining Netatmo Weather Station to Amazon Echo (Alexa) - javascriptRails 4 - Development: getting ActionController :: UnknownFormat upon registration - ruby | fooobar.comUILocalNotification Minimal Actions - One Blue, One Clear? - iosНе удается получить ответный контент в мифриле - javascriptWhy is Dockerized registering a Datanode Hadoop with the wrong IP address? - javaDrawing N-Pointed Star in OpenGL - C ++ - c ++Customize pyuic resource import statement? - pyqtApache Cordova: Failed to load the resource: the server responded with a status of 404 (not found) - androidPassing a function to a template object during template initialization in C ++ - c ++All Articles