UIScrollView using only the interface

I know that this question has been answered before, many times, but my example of use seems to be quite different from all of them, that I can not understand it.

My problem

I have a scroll view that does not match its inscription. There is 1 subclass in the scroll view, which is the same size as it, but it must be scalable.

Uploaded tutorials:

(1) - Apple Technical Note - This is done only with the code, and the examples show only full-screen scroll views.

(2) - Natasha The Robot Article - This was a really well written article, but I could not get it to work for me. I think this is due to the fact that her view scrolls in full screen.

(3) - Happy coding blog article - Another full-screen scroll view

... and many other textbooks that were very similar to these

My requirements

  • My scroll view should be complete.
  • My scroll view should be 40 cm on top and have a 1: 1 aspect ratio
  • In my scroll view there should be one subtask that has the same size but can be increased with increasing (e.g. content size = scroll size)

I do not think that the size of the scroll view should affect anything, but it looks.

What i tried

, " ".

  • | -View | -ScrollView    | -ContentView       | -ZoomableView

:

Constraints

, , "" ( ) . VC.

, , , , , , (AKA 1:1). ?

+4
1

, . "" .

Layout

, , : scrollview 1 ​​, ( ), 40pt.

nz3ZA.jpg

+2

All Articles