What's the right way to "remove the footerView" of a UITableView?
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