如何在UITableView页脚上设置富文本属性?

iam*_*ile 4 cocoa objective-c

我在用

- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
{
  if ( section == 0 )
  {
    return NSLocalizedString(@"Section_0_text", @"");
  }
  if ( section == 1 )
  {
    return NSLocalizedString(@"Section_1_text","");
  }
  return nil;  
}
Run Code Online (Sandbox Code Playgroud)

我可以修改返回字符串文本字体,颜色和其他一些属性吗?

Six*_*tto 5

看一下这个UITableViewDelegate类,特别是方法tableView:viewForFooterInSection:tableView:heightForFooterInSection : . 您可以返回任何类型的视图,包括 - 但不限于 - UILabel具有您想要的任何文本属性.