首页 > 其他 > 详细

UITableViewCell的基本使用

时间:2015-03-16 16:32:03      阅读:170      评论:0      收藏:0      [点我收藏+]

//在cell = [[UITableViewCellalloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];
下设置cell文字居中

cell.textLabel.text =@"清除缓存";

cell.indentationLevel =12;

如图所示:

技术分享

//在cell = [[UITableViewCellalloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];

下设置cell文字居中

cell.textLabel.text =@"意见反馈";

cell.textLabel.textAlignment =NSTextAlignmentCenter;

如图所示:

技术分享


//设置cell右侧的文字

//在cell =[[UITableViewCellalloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];

cell.textLabel.text = @"新版本检测";

cell.detailTextLabel.text = @"V2.6.1";

如图所示:

技术分享



UITableViewCell的基本使用

原文:http://blog.csdn.net/huanghaiyan_123/article/details/44306533

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!