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: Ray Raphaël <email@hidden>
- Date: Wed, 27 Nov 2013 10:37:37 +0100
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 = (UITableView *)self.view;
self.view = [[[UIView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame] autorelease];
self.tableView.frame = self.view.bounds;
[self.view addSubview:self.tableView];
Then add whatever fixed view to self.view.
Better maybe is adding a view to self.tableView and then offset the view while scrolling, as described in the WWDC 2011 Session 125...
HTH
On Nov 27, 2013, at 10:14 AM, Rick Mann <email@hidden> wrote:
> Multiple sections.
>
> --
> Rick
>
>
>> On Nov 27, 2013, at 1:03, Diederik Meijer | Ten Horses <email@hidden> 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 additional cells scroll underneath it…
_______________________________________________
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