• 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
What's the right way to "remove the footerView" of a UITableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's the right way to "remove the footerView" of a UITableView?


  • Subject: What's the right way to "remove the footerView" of a UITableView?
  • From: Aaron Lewis <email@hidden>
  • Date: Sat, 14 Mar 2015 14:05:21 +0800

Hi,

To demonstrate what I'm doing, here's the code of two delegate methods:

(I also disabled scrolling in this table view)

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 3;
}

- (CGFloat)tableView:(UITableView *)tableView
heightForHeaderInSection:(NSInteger)section
{
    if (section == [self.tableView numberOfSections] - 1)
        return 1000;

    return 10;
}

It looks quiet dumb, as I have to set an extremely large height of the
last header section.

If I don't do that the UITableView will have a large white area in the
footer section.

So what is the official way to do the same thing?

--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
_______________________________________________

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


  • Prev by Date: Trying to hide a NSProgressIndicator upon finishing of table rendering
  • Next by Date: Decompile compiled storyboard / xib files?
  • Previous by thread: Re: Trying to hide a NSProgressIndicator upon finishing of table rendering
  • Next by thread: Decompile compiled storyboard / xib files?
  • Index(es):
    • Date
    • Thread