Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are all my view controllers square shaped?

Tags:

xcode

ios

I'm trying to get it to be an iphone project, but when I drag any view controller into the storyboard, it's just a weird almost-square, neither ipad nor iphone. What am I doing wrong here? Newest version of XCode.

enter image description here

like image 749
temporary_user_name Avatar asked Nov 18 '14 21:11

temporary_user_name


People also ask

How do I create a new view controller?

To create a new view controller, select File->New->File and select a Cocoa Touch Class. Choose whether to create it with Swift or Objective-C and inherit from UIViewController . Don't create it with a xib (a separate Interface Builder file), as you will most likely add it to an existing storyboard.


1 Answers

This is a new feature called "size classes". You can use it to create a universal storyboard for iPhone and iPad at once.

But I don`t really like it so here is how to turn off: In storyboard, open utility inspector (right), then go to file inspector (left) and now disable "Use Size Classes". Then you will get the standard storyboard.

enter image description here

like image 85
return true Avatar answered Oct 19 '22 23:10

return true