Re: Add a view (xib) to a project
Re: Add a view (xib) to a project
- Subject: Re: Add a view (xib) to a project
- From: Uli Kusterer <email@hidden>
- Date: Mon, 31 Jan 2011 10:27:50 +0100
On 30.01.2011, at 22:59, Max Stottrop wrote:
> But now to my question. Can anyone of you explain me (slowly;)) how to add another view (.xib) file to my iPhone project? I tried several things, but none worked for me. Thanks in advance.
There are two steps to this:
1) Create a UIViewController subclass to load the XIB
2) Create the actual XIB file, and make sure you set the "custom class" of its "File's Owner" to the class of object that loads your XIB (i.e. the subclass from step 1)
Both of these can be achieved using the File -> New menu item in Xcode these days, and then opening and editing the resulting files.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden