UIScrollView with scaled UIImageView using autolayout

后端 未结 3 2417
广开言路
广开言路 2021-02-20 04:51

\"UIScrollView

Consider a UIScrollView with a single subview. The subview is an

3条回答
  •  粉色の甜心
    2021-02-20 05:28

    translatesAutoresizingMaskIntoConstraints is only required when you instantiate the view in the code. If you instantiate it in the IB it's disabled by default

    In my opinion the UIImageView should fill the ScrollView. Later I'd try setting the zoom of the scrollview to the value that suits you well so the image can only be panned in one direction

提交回复
热议问题