Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
561 views
in Technique[技术] by (71.8m points)

xcode4 - Recovering Accidental Storyboard Deletion

I tried looking for the answer but didn't find it.

I accidentally deleted my storyboard in XCode4. Is there anyway that I can retrieve it? I looked in the trash can but there was nothing there.

Thanks for your help!

UPDATE: Even though I deleted the storyboard, I've noticed that the compiler still compiles and runs the program and has all the same UIButtons and UILabels with the correct sizes, text labels, and positioning. All as if it never was deleted! Im guessing that the information is still there somewhere! does anyone know if there is perhaps a copy saved within xcode somewhere that i can used to recreate the storyboard file?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If it popped up that means you can find it in your project folder. Just look in /projectName/projectName/Base.lproj. The storyboard is there. You can drag it into Xcode and its as good as new.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...