> 
> On Jul 17, 2009, at 9:39 AM, Trygve Inda wrote:
> 
>>> Look at the table view programming guide for how to build custom
>>> table
>>> cells. Just think of each cell as a custom view. They can even be
>>> built in IB easily enough. Drag UITableViewCell objects into your nib
>>> and lay them out however you like.
>>> 
>>> Luke
>>> 
>>> Sent from my iPhone.
>> 
>> So I want a TableView but also a few other views in the same screen/
>> window.
>> 
>> How can I do this in IB. I see examples where the TableView is the
>> only view
>> on the screen, and it wants to size itself to max.
>> 
>> Basically my thought was to just drag a TableView onto the view
>> along with
>> other objects, but the docs seem to strongly encourage using a
>> TableViewController.
>> 
>> In the MacOS side of things, I would drag a controller to the nib and
>> connect it to my table, but the iPhone TableViewController seems to
>> include
>> the view already so I am not sure how to make it consume only a
>> portion of
>> the main view.
>> 
>> T.
> 
> 
> Create a UIViewController, and choose the option to also create a XIB
> (if available... otherwise make it manually and set it to your class).
> 
> In your header file, create a UITableView IBOutlet, and be sure to
> conform to table view data source and delegate protocols.  You'll need
> to create the various delegate methods, as they are not part of the
> UIViewController template.
> 
> Open up your XIB file.  Open up your view.  Drag in a table view.
> Size as desired.  Wire up outlet and delegate connections.  Drag in
> other items as desired.

So the UIViewController object goes in my MainDocument nib and then I create
MyView nib which has a fileowner, responder and view.

Can I just drag a connection from the UIViewController  in one nib to the
view object in another nib ????

T.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to