Reputation: 1463
I'm learning ios and trying to make my first UIscrollview interface. It's a simple app with 3 inputs, one button and sum label. Here is my view hierarchy:
I set up the constraints like this:
But, then I switch a simulator to the horizontal orientation I can't scroll to the bottom of the container view to see the sum label.
Where is the problem? I have no Content size Amiguity warning.
Code can be found here: https://www.dropbox.com/s/3pemzl2695g26li/Calculator.zip?dl=0
Thanks!
Upvotes: 0
Views: 64
Reputation: 153
You have implemented wrong constraints in side the view. just change two constraints.
Upvotes: 1
Reputation: 693
I have checked your code on my system. You have to follow the steps below to make your view scroll in horizontal/landscape orientation:
Please make these changes and run your code. If you still got any issue in scrolling the view then let me know, I will upload the code to dropbox. I suggest you to follow some good tutorials regarding the constraints as you have applied some wrong constraints as well.
Upvotes: 1