suhas.porchys
suhas.porchys

Reputation: 35

How to remove xib file for UIViewController class?

I want to remove xib file for UIViewController classes. Please let me know, If any one know how to remove or delete xib file.

Upvotes: 0

Views: 2154

Answers (2)

oelna
oelna

Reputation: 2446

I'd like to add that the labels and everything I had placed in the file still showed up in the Simulator after I had deleted my .xib

It seems, Simulator caches the contents and I had to delete the app from inside the Simulator to force it to totally rebuild. Worked after that.

Upvotes: 1

Thilina Chamath Hewagama
Thilina Chamath Hewagama

Reputation: 9040

You can just delete the .xib file,

enter image description here



If you want a new .xib for your view controller, create new xib

enter image description here

Then give ViewController as File's Owner's Custom Class,

enter image description here

Finally, link the ViewCrontroller's view and .xib

enter image description here

Upvotes: 4

Related Questions