Gaurav Gaurav - 2 months ago 42
iOS Question

Xcode 8.2 can't change simulator device in down panel

I am completely new to ios programming and one of the things I am having difficulty is in changing the simulator device in main storyboard bottom panel (image below).

Although I can change the device in top left but I don't see the device ( 6s e.g in this case) in the bottom panel. I can change the orientation but don't see all the device. Please let me know what I am missing.

Note : Before downvoting - please note that I don't see all devices when I click on View as: iPhone7(wChR) . The reason I want to switch to iphone6 in storyboard view is because default iphone& covers up my whole screen.

following panel,

enter image description here



You have completely misunderstood Xcode, the left top drop down you changed and selected 6s shows what device will be used to load your app. So when you hit run you will see iPhone 6S popping out and loading your app. This got nothing to do with device panel in main.storyboard :)

The devices that you see in device panel of main.storyboard represents the devices of various size classes. If in case you aren't aware of what size classes are, I suggest you should have look into size class concepts, before diving deep into app development :)

Anyway you can change the device size class in main.storyboard by clicking on the device images listed below.As you can see one of the iPhone is selected which of size class (c X w) if you click on iPad you will see that device frame in storyboard will change and show size class as (R x R)

Hope it helps :)