Align text in UITableView's Footer
if your tableview is short, then you can also write something like this:
-(void)viewDidLayoutSubviews
{
for (int section = 0; section < [self.tableView numberOfSections]; section++)
{
[self.tableView footerViewForSection:section].textLabel.textAlignment = NSTextAlignmentRight;
}
}
tableView:viewForFooterInSection:
is not a workaround.
It's common for Apple to give you two options, the easy way and the manual way.
If the easy way (tableView:titleForFooterInSection:
) isn't doing what you want, you have the ultimate in flexibility by adding your own view.
In fact, you can just return a UILabel in tableView:viewForFooterInSection:
Should be super easy.