0

In My iPad app, I accidentally deleted the MainWindow.Xib, any solution?

Thank you

zak
  • 39
  • 1
  • 4

2 Answers2

0

copy-paste MainWindow.xib from another project of same template and set the class of that file to the name of your appdelegate class. OR Add new xib (uiapplication) and set its delegate to your app delegate

RKY
  • 266
  • 1
  • 7
  • how to "set the class of that file to the name of your appdelegate class"? sorry i'm new in ios programming. – zak Aug 08 '12 at 12:45
0

you should recreate it then.

File -> New -> File... --- iOS User Interface -> View -> Next -> iPad -> Next -> set the name MainViewController.xib -> Create and violá...

you've done!

or...

use the TimeMachine to backup it or if you are using any version control system (i.e. git) you would just reset the deleting and you could get back the original MainViewController.xib.

holex
  • 23,961
  • 7
  • 62
  • 76
  • I did it, but it's empty, how to link it with the delegate, view, i don't know, how to make it work like before? – zak Aug 08 '12 at 11:53