> On Nov 25, 2013, at 6:08 PM, Rick Mann <rm...@latencyzero.com> wrote: > > Dynamically at runtime, I'd like to put a fixed banner across the top of a > UITableViewController scene with some status information. I want this banner > to remain fixed at the top, and for the UITableView to live in a frame below > it. > > IB doesn't let you construct this. I wrote this as a bug/enhancement request, > and it came back that I should embed a sub view controller in it. But this is > incredibly cumbersome, as it forces me to create another view controller to > contain it.
Except that’s precisely what UIViewController expects. Let’s say you have a navigation controller. It is in charge of positioning its child view controllers’ views. You can’t intervene and say “sorry nav controller, but that table view should be 40pt below where you want to put it.” That’s not how view controller containment works. > > What do you guys suggest? > Use an custom container view controller, and watch the WWDC videos on view controller containment to learn why this is the right thing to do. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com