设置UITableView边框

用的人相对比较少,刚正好遇到,查了下资料

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

这时系统会报错,Property 'borderWidth' cannot be found in forward class object 'CALayer *',说不能发现CALayer

添加QuartzCore.framework并在头文件导入即可

posted @ 2013-02-22 19:44  追风.扬  阅读(549)  评论(0编辑  收藏  举报