Accidentally deleted mainWindow.xib

178 Views Asked by At

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

Thank you

2

There are 2 best solutions below

1
On

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

1
On

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.