用的人相对比较少,刚正好遇到,查了下资料
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并在头文件导入即可