Re: Best way to put a fixed view in a UITableViewController scene?
Re: Best way to put a fixed view in a UITableViewController scene?
- Subject: Re: Best way to put a fixed view in a UITableViewController scene?
- From: Luther Baker <email@hidden>
- Date: Mon, 25 Nov 2013 23:11:23 -0600
Maybe I am missing something - but I just created a new Tab based project
and dropped a UITableView directly on the FirstViewController, under the
"View" node in the expanding tree. If I right click on the UITableView, I
see both the delegate and datasource outlets. I can click them and easily
drag/connect to the parent "First View Controller."
Do you mean something else?
On Mon, Nov 25, 2013 at 8:48 PM, Rick Mann <email@hidden> wrote:
> I'm not convinced this is the best way. I can't drag-connect the table
> view controller's delegate and dataSource in IB when it's done this way.
>
> On Nov 25, 2013, at 18:40 , Luther Baker <email@hidden> wrote:
>
> > Dropping a UITableView inside of a UIViewController that conforms to the
> tableview's delegate and datasource is literally as easy as it sounds ...
> and immensely more flexible.
> >
> > UITableViewController is convenient but at all necessary.
> >
> > On Nov 25, 2013, at 8:16 PM, Kyle Sluder <email@hidden> wrote:
> >
> >>> On Nov 25, 2013, at 6:08 PM, Rick Mann <email@hidden> 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 (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
>
>
> --
> Rick
>
>
>
>
_______________________________________________
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