设置 UITableView 边框 cell 边框 竖线

来源:互联网 发布:淘宝签名照是真的吗 编辑:程序博客网 时间:2024/06/05 20:53

 需引入QuartzCore.framework, 并在相关文件中加入 #import "QuartzCore/QuartzCore.h"

 

self.tableView.layer.borderWidth = 1;self.tableView.layer.borderColor = [[UIColor blackColor] CGColor];

 

 

 


<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>