简体   繁体   中英

Multiple views in one ViewController

I am trying to make one large view controller which contains multiple buttons and other views.

One view (also contains list of buttons) is hidden and it could be shown on button click.

How can I make such a large scene, as in Xcode I'm not able to see anything larger than scene size. Here is screen shot of one of my attempts:

在此处输入图片说明

I tried my best to find some tutorial, but without success.

Put scroll view onto your view controller, and put all your buttons onto it. To make it in interface builder set your view controllers size in interface builder. It will not affect at running but will make your controller larger, for building large scenes in interface builder. To do so, select your view controller scene, and at size inspector( at right utilities pane) switch simulated size from fixed, to whatever you need. Again, it will not affect at runtime size. Only for interface builder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM