• 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: Iphone Grouped Table View for Settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Iphone Grouped Table View for Settings


  • Subject: Re: Iphone Grouped Table View for Settings
  • From: Trygve Inda <email@hidden>
  • Date: Fri, 17 Jul 2009 14:15:27 +0000
  • Thread-topic: Iphone Grouped Table View for Settings

>
> 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@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

  • Follow-Ups:
    • Re: Iphone Grouped Table View for Settings
      • From: Luke the Hiesterman <email@hidden>
References: 
 >Re: Iphone Grouped Table View for Settings (From: Brian Slick <email@hidden>)

  • Prev by Date: Re: Iphone Grouped Table View for Settings
  • Next by Date: Re: Iphone Grouped Table View for Settings
  • Previous by thread: Re: Iphone Grouped Table View for Settings
  • Next by thread: Re: Iphone Grouped Table View for Settings
  • Index(es):
    • Date
    • Thread