频道栏目
首页 > 资讯 > IOS > 正文

iOS UITableViewCell透明度 和 cell文字居中

13-09-17        来源:[db:作者]  
收藏   我要投稿
1、创建UITableViewCell时,的模式用UITableViewCellStyleValue1时,透明度直接将UITableView的透明度设置以下就搞定拉,但是文字居中难以实现。
2、创建UITableViewCell时,的模式用UITableViewCellStyleDefault时,文字居中直接用
cell.textAlignment = UITextAlignmentCenter;
就搞定拉,但是只设置UITableView的透明度,背景透明难以实现
透明度具体实现代码:
cell.opaque = NO;
cell.textLabel.backgroundColor = [UIColor clearColor];
[cell setBackgroundColor:[UIColor colorWithRed:1 green:1 blue:1 alpha:0.2]];
并且将UITableView的透明度设置一下就搞定拉。
 
 
相关TAG标签
上一篇:ubuntu下的ssh tunnel程序gSTM配合privoxy搭建http代理
下一篇:Linux系统登录欢迎辞
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站