Riandy
Riandy

Reputation: 372

Scrollview in Storyboard ios

enter image description here

As shown in the above picture, I am trying to create a scrollview in storyboard. everything works well and when I run the app, i can scroll through the view.

Problem is, during the storyboard design phase, i am unable to scroll down the view to the below part of the scroll view? any idea how to do that?

Thanks

Upvotes: 0

Views: 164

Answers (3)

dahiya_boy
dahiya_boy

Reputation: 9503

Your can not scroll from the storyboard, for design purpose do following

From storyboard

  1. select your VC

enter image description here

  1. From Right panel select freedom size

enter image description here

  1. Now select your VC size

enter image description here

NOTE: when your design is completed make sure now your VC is in fixed mode.

Upvotes: 1

Burnie777
Burnie777

Reputation: 395

My suggestion is to enlarge that controller by:

  1. Selecting the viewcontroller

enter image description here

  1. Changing the simulated size:

enter image description here

Once all the editing it done you can set the simulated size back to Fixed

In this way you are able to see the whole screen at once while designing the UI

Upvotes: 1

Saheb Roy
Saheb Roy

Reputation: 5957

Tap on the view, go the the attribute inspector and then change the y position to something negative, say -100, Do your UI changes accordingly and then again put the y value as 0.

Note : During the time you change it to negative, constraints are going to be orange, signifying that they are not correct. But once you put them back to 0, they are going to be fine.

Upvotes: 0

Related Questions