• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to put a fixed view in a UITableViewController scene?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Best way to put a fixed view in a UITableViewController scene? (From: Marcelo Alves <email@hidden>)
 >Re: Best way to put a fixed view in a UITableViewController scene? (From: Diederik Meijer | Ten Horses <email@hidden>)
 >Re: Best way to put a fixed view in a UITableViewController scene? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Best way to put a fixed view in a UITableViewController scene?
  • Next by Date: Re: Responder chain query
  • Previous by thread: Re: Best way to put a fixed view in a UITableViewController scene?
  • Next by thread: NSTask and 10.9
  • Index(es):
    • Date
    • Thread