我在用
- (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)
我可以修改返回字符串文本字体,颜色和其他一些属性吗?
看一下这个UITableViewDelegate类,特别是方法tableView:viewForFooterInSection:和tableView:heightForFooterInSection : . 您可以返回任何类型的视图,包括 - 但不限于 - UILabel具有您想要的任何文本属性.
| 归档时间: |
|
| 查看次数: |
2958 次 |
| 最近记录: |