1

I am trying to create a new nib file in my empty iPhone application project in XCode.

I go to File -> New, after which XCode presents me with these options.

enter image description here

I tried selecting "Objective-C category" and then selecting "UINib."

enter image description here

However, doing so just created a .h and .m file instead of a .xib file. How do I create new nib (.xib) file in XCode 4.3?

1

Under iOS (in your first screenshot) select User Interface, from there you can select Empty to add a blank nib. There are also options there to create initial nibs for a View, Window, or Application.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.