GJH385
GJH385

Reputation: 25

Xcode 5: Deleted Main Storyboard

I accidentally deleted the main story board off Xcode 5 and i can't find the file anywhere its not in the trash and is not on the system at all is there any way too get it back or even just to create a new story board thanks in advance.

Upvotes: 0

Views: 4076

Answers (1)

Gavin
Gavin

Reputation: 8200

Go to File -> New -> File..., choose "User Interface", then choose "Storyboard". That will give you a new one.

As I mentioned in my comment, you probably should create a local git repository when you create new projects. The option is right there when you're creating the new project. Then you can do periodic commits as well so that even without a remote repo, you still have version control, and some degree of safety from accidentally deleting files.

EDIT:

To choose the new storyboard, choose your project on the lefthand side in Xcode, make sure your target is selected, choose the "General" tab, and make sure your storyboard is selected under "Main Interface".

Upvotes: 2

Related Questions