Whoami
Whoami

Reputation: 14428

renaming .xib file in Xcode 4.3.3 is this the right way?

I wanted to rename the files .h, .m. .xib into my own name.

I have created a tabbed application, and I did single click on the source browser, and changed

FirstViewController.h to FVC.h
FirstViewController.m to FVC.m

and changed respective places to include FVC.h.

It works for me. But what i would like to know is that is this the right approach that i can go ahead with?.. will there be any hidden issues with this approach?

Upvotes: 1

Views: 260

Answers (1)

David Hoerl
David Hoerl

Reputation: 41662

The only "gotcha" is that if you are using the nibName in your code (ie initWithNibName:), you obviously need to change that too. I personally have gotten bit with that problem - the app launches then crashes when it tries to push that broken object.

Upvotes: 1

Related Questions