Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-27 Thread Rick Mann
On Nov 27, 2013, at 01:37 , Ray Raphaël wrote: > I do the following, the property *tableView in UITableViewController is not > backed by a _tableView instance variable, so I synthesize that (@synthesize > tableView = _tableView;) and then in viewDidLoad: > > if (!_tableView && [self.view isKi

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-27 Thread Ray Raphaël
I do the following, the property *tableView in UITableViewController is not backed by a _tableView instance variable, so I synthesize that (@synthesize tableView = _tableView;) and then in viewDidLoad: if (!_tableView && [self.view isKindOfClass:[UITableView class]]) self.tableView = (UITableVi

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-27 Thread Rick Mann
Multiple sections. -- Rick > On Nov 27, 2013, at 1:03, Diederik Meijer | Ten Horses > wrote: > > Not if your UITableView has only one section and you use the section's header > view in the way Marcelo suggests. Sections headers scroll up to the top and > then remain there - visible - while

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-27 Thread Diederik Meijer | Ten Horses
Not if your UITableView has only one section and you use the section's header view in the way Marcelo suggests. Sections headers scroll up to the top and then remain there - visible - while additional cells scroll underneath it… Op Nov 27, 2013, om 4:30 AM heeft Rick Mann het volgende gesch

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Kyle Sluder
> On Nov 26, 2013, at 6:06 PM, Rick Mann wrote: > > Augh, it's even worse than I thought. The embedded view controller doesn't > get to set the navigation bar's items from IB. This is a terrible solution. > Yeah, this is getting more and more tedious. My guess is there's a lot of code out the

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Rick Mann
On Nov 26, 2013, at 19:18 , Marcelo Alves wrote: > Probably I’m missing something or I’m just naïve (or stupid), but what about > the tableHeaderView (or tableFooterView) property? (not the same as section > headers) It scrolls with the table content. -- Rick signature.asc Description:

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Marcelo Alves
> 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. > Probably I’m missing something or I’m just naïve (

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Rick Mann
Augh, it's even worse than I thought. The embedded view controller doesn't get to set the navigation bar's items from IB. This is a terrible solution. On Nov 26, 2013, at 11:32 , Rick Mann wrote: > > On Nov 26, 2013, at 08:12 , Luther Baker wrote: > >> For the most part, UITVC is a convenien

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Rick Mann
On Nov 25, 2013, at 21:16 , Luther Baker wrote: > Does the UITableViewController provide something more I'm not seeing? Yes. Support for static (and probably dynamic) cells. I'm implementing this using view controller containment, but it's extraordinarily cumbersome. First, the non-scrolling

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Rick Mann
On Nov 26, 2013, at 08:12 , Luther Baker wrote: > For the most part, UITVC is a convenience view controller. If it doesn't work > out of the box, not hard to roll your own and get the behavior you are > looking for ... Even still with Xibs. Unfortunately, this does not work if you want to use

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Luther Baker
Right, that seems obviously like fighting the SDK. My suggestion is around rolling your own. IE, I would wire up and drop a "UITableView" on a parent view controller, I wouldn't drop a "UITableViewController" on a parent. For the most part, UITVC is a convenience view controller. If it doesn't

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-26 Thread Fritz Anderson
On 26 Nov 2013, at 12:53 AM, Rick Mann wrote: > On Nov 25, 2013, at 21:11 , Luther Baker wrote: > >> 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 r

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Rick Mann
On Nov 25, 2013, at 21:11 , Luther Baker wrote: > 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 delega

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Luther Baker
Yes, thanks for inserting the "not". If I drop a UITableView on an existing UIViewController in the default storyboard for a new Tab based application, I can click on the UITableView and select from "static cells" or "dynamic content" in the TableView content section in the right hand Utilities pa

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Luther Baker
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

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Kyle Sluder
> On Nov 25, 2013, at 6:51 PM, Rick Mann wrote: > > >> On Nov 25, 2013, at 18:48 , Kyle Sluder wrote: >> >> Sure, you could, but why? Then your container VC has to reach in to your >> table view controller and point its table view at itself. >> >> Why not just do the sensible thing and make

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Rick Mann
On Nov 25, 2013, at 18:48 , Kyle Sluder wrote: > Sure, you could, but why? Then your container VC has to reach in to your > table view controller and point its table view at itself. > > Why not just do the sensible thing and make the container VC responsible for > managing the bar and positio

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Rick Mann
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 wrote: > Dropping a UITableView inside of a UIViewController that conforms to the > tableview's delegate and

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Kyle Sluder
> On Nov 25, 2013, at 6:33 PM, Rick Mann wrote: > > >> On Nov 25, 2013, at 18:16 , Kyle Sluder wrote: >> >> 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. > > Can I put an unsubclasses UITableV

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Rick Mann
On Nov 25, 2013, at 18:40 , Luther Baker wrote: > UITableViewController is convenient but at all necessary. Is there a missing "not" in there? It's necessary if you want to use the static and dynamic cell creation stuff in IB. -- Rick signature.asc Description: Message signed with Open

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Luther Baker
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 wrote: >> On Nov 2

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Rick Mann
On Nov 25, 2013, at 18:16 , Kyle Sluder wrote: > 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. Can I put an unsubclasses UITableViewController in there, and let my container VC be the dataSource

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Kyle Sluder
> On Nov 25, 2013, at 6:08 PM, Rick Mann 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. >

Best way to put a fixed view in a UITableViewController scene?

2013-11-25 Thread Rick Mann
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/enhanc