In Xcode 6, I opened up the Preview so I could see how my storyboard would look on different devices. I can add devices to the preview. In fact, I can add the same device to the preview over and over. But how do I remove a device from the preview? I tried closing out of Xcode and re-opening it, but they are still there.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I don't know if I tried this in XCode 6.0 or not, but I'm on 6.1 now and I was able to remove the previewed device. Select the device (you can see a blue outline around the device when selected) in the Preview panel then press delete. That will remove it from the Preview panel.
回答2:
Kurt Anderson's answer works from Xcode 6.1 all the way to the latest Version 8.2.1 (8C1002). I assume the same "select" then "delete" will work for the future Xcode as well.