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 <lutherba...@gmail.com> 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 <k...@ksluder.com> wrote:
> 
>>> 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/lutherbaker%40gmail.com
>> 
>> This email sent to lutherba...@gmail.com


-- 
Rick



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

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

Reply via email to