• 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: Adding UINavBar to split view detail in storyboard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding UINavBar to split view detail in storyboard?


  • Subject: Re: Adding UINavBar to split view detail in storyboard?
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 12 Nov 2012 09:30:01 -0600

On 12 Nov 2012, at 3:58 AM, Rick Mann <email@hidden> wrote:

> Storyboard table views insist, rather restrictively, that the top-level view in a UITableViewController be a table view. I'd really rather it be a regular view, and put the table view down inside the hierarchy. There's no good reason this can't be the case, except that UITableViewController is implemented rather short-sightedly.

The whole point of a UITableViewController is to have a controller that autonomously instantiates a table view as its root view. Interface Builder isn't making an arbitrary choice; the controller, not IB, creates the view.

If you want a UITableView to be a sibling of other views, instantiate a UIViewController subclass, make its .view a plain UIView (or as the problem demands), drop in the table view along with sibling views, and connect the table to an outlet in the controller. You won't get a template with the delegate and data source methods prefilled, but there's nothing magic about it. Just put UITableViewController.h into the Assistant editor and paste the declarations into your controller's implementation.

	— F


_______________________________________________

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: Adding UINavBar to split view detail in storyboard?
      • From: Rick Mann <email@hidden>
References: 
 >Adding UINavBar to split view detail in storyboard? (From: Rick Mann <email@hidden>)

  • Prev by Date: alertImageDragInDesignWithURL:?
  • Next by Date: Re: How to implement readonly property
  • Previous by thread: Re: Adding UINavBar to split view detail in storyboard?
  • Next by thread: Re: Adding UINavBar to split view detail in storyboard?
  • Index(es):
    • Date
    • Thread