Reputation: 91
I delete the storyboard by mistake from my app.
Where I can find it and restore it,
or I lost it?
Upvotes: 3
Views: 2919
Reputation: 385500
The default storyboard filename is Main.storyboard
, so that's what you should look for unless you gave it a different name. (Older versions named it MainStoryboard.storyboard
, so if you are working on an older project, you might need to look for that instead.)
First, check your project folder (using the Finder). If it's there, you can drag it back into your project in Xcode, or you can use the “Add Files to …” menu option.
If it's not there, check the trash can. If it's there, you can right-click it and choose “Put Back”, then follow the steps in the previous paragraph.
Upvotes: 4
Reputation: 452
Try running again your app and Xcode will create the file automatically, this worked for me.
Upvotes: 0