• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Add a view (xib) to a project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Add a view (xib) to a project (From: Max Stottrop <email@hidden>)

  • Prev by Date: Re: Initializing NSWindow with Carbon window
  • Next by Date: Re: Initializing NSWindow with Carbon window
  • Previous by thread: Re: Add a view (xib) to a project
  • Next by thread: NSTableView selecting text within a cell
  • Index(es):
    • Date
    • Thread