Home Ask Login Register

Developers Planet

Your answer is one click away!

Charlie Martin February 2016

How can I preview different view controllers of a storyboard in XCode

XCode has an excellent feature where you can preview your storyboards on various devices. This is a great way to test layouts on multiple different iOS devices without having to run them all individually in the simulator.

Is it possible to preview each individual view controller of a storyboard? XCode defaults to the root view controller of the storyboard, which in my case usually contains little or no UI elements and is therefore useless. I want to preview child view controllers of my storyboards. Is this possible?

XCode preview feature


Muhammad Zohaib Ehsan February 2016

Preview shows the layout of current view controller selected not the root controller always when i do it.

Post Status

Asked in February 2016
Viewed 1,992 times
Voted 11
Answered 1 times


Leave an answer

Quote of the day: live life