Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 forces to 'Choose an initial device view'

Tags:

ios10

xcode8

enter image description here

I currently updated to Xcode 8 GM. When I try to see my storyboard, above window pops up and there's no way to avoid this settings. I chose 6s screen and all my view controllers changed to 6s size. It will be much harder to adjust layout constraints on that small screens. I believe it's possible to change the size to iPad but I want to know what this is first.

No way to comeback to ambiguous sized view controllers?

What is this settings for?

like image 859
Vincent Gigandet Avatar asked Sep 10 '16 00:09

Vincent Gigandet


People also ask

How to add constraints to view in Xcode?

To create constraints select the button and click the Align icon in the auto layout menu. A popover menu will appear, check both “Horizontal in container” and “Vertically in container” options to center the button on the screen. Then click the “Add 2 Constraints” button. Run the application.

How does constraints work in Xcode?

Control-Dragging ConstraintsInterface Builder intelligently selects the set of constraints based on the items you are constraining and the direction of your drag gesture. If you drag more or less horizontally, you get options to set the horizontal spacing between the views, and options to vertically align the views.


1 Answers

A way "come back to ambiguous sized" can be:

Select all the Scenes(View Controllers) in the Storyboard, show the Size inspector, change the Simulated Size to Freeform, then set Width Height = 600.

Then, those tons of warnings disappear.

enter image description here

like image 92
Xiang LI Avatar answered Sep 25 '22 19:09

Xiang LI