How do I change the preview device in Xcode storyboard?

Bhargav picture Bhargav · Apr 5, 2016 · Viewed 16.7k times · Source

As you can see from the below image

enter image description here

The storyboard preview is of some tablet device, I need to change this to the latest iphone or iphone 4s, how can I do this? Also I know about the assistant editor and how to preview on multiple devices using the assistant editor, thats not what I want, I want to change the preview in the story board itself

Answer

girish_pro picture girish_pro · Apr 5, 2016

You need to follow four steps.

  1. Press Cmd + Alt + Enter(return). It will show two window.
  2. Click on 'Manual' text. It will show menu with Last option as 'Preview'.
  3. Select it.

enter image description here

4.Select device type from bottom '+' button into which you want to see preview. enter image description here