自定义UITableView的Section的title的样式
来源:互联网 发布:不用实名的域名 编辑:程序博客网 时间:2024/05/16 05:17
这是设置rFooter的Section
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
return 21.0f;
}
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
NSString *sectionTitle = [selftableView:tableViewtitleForFooterInSection:section];
if (sectionTitle == nil) {
return nil;
}
UILabel *label = [[UILabelalloc]init];
label.frame = CGRectMake(20,8,320, 21);
label.lineBreakMode=NSLineBreakByWordWrapping;
label.numberOfLines=0;
label.backgroundColor = [UIColorclearColor];
label.textColor = [UIColorlightGrayColor];
label.font = [UIFontboldSystemFontOfSize:13];
label.text = sectionTitle;
UIView *view = [[UIViewalloc]init];
[view addSubview:label];
return view;
}
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
{
switch (section) {
case 0:
return @"";
break;
case 1:
return@"XXXXXXXXXXXXX";
break;
case 2:
return @"";
break;
default:
return @"";
break;
}
}
设置rFooterInSection
- 自定义UITableView的Section的title的样式
- 自定义UITableView的Section的title的样式
- 修改UITableView section header title的样式
- 自定义UITableView的Section 的 title 的字体 和颜色
- [iOS UItableView 自定义Section] 自定义Section 修改title样式
- UITableView样式的自定义
- UITableView 样式的自定义
- UITableView样式的自定义
- tableview自定义每个section的title
- 自定义Section:修改UITableView的Section的背景和字体
- 自定义Section:修改UITableView的Section的背景和字体
- 表格的Section HeaderTitle 标题样式自定义
- 自定义DataGrid/GridView的title样式
- UITableView-的cell 自定义 高度,样式
- 自定义UITableView的左滑动样式
- 改变title的样式
- 设置title的样式
- UITableView 应用(五)UITableView样式的自定义
- .NET设计模式(4):建造者模式(Builder Pattern)
- 手机游戏满江红里的诗句
- View,widget关系
- 来一起学习下·角度和弧度
- map
- 自定义UITableView的Section的title的样式
- VS2008下反汇编观察switch语句
- 打开网页时的logo(页面选项卡上的icon)
- iOS中使用RegexKitLite来试用正则表达式 使用ARC 20个错误解决办法
- Uninstall iLivid Download Manager with WindowsUninstaller.Org Removal Tips
- iOS应用崩溃日志分析
- 去掉图片转换后的黑色背景
- hdu 1042 N! 高精度运算
- 2013-7-18学习作业[有常考面试题]