我得到以下异常的未知“cornerRadius”组件,它让我发疯了:iOS版:错误:访问属性
error: accessing unknown 'cornerRadius' component of a property
这是代码行:
cell.imageView.layer.cornerRadius = 20.0;
我从2010年12月开始遵循本教程:http://www.raywenderlich.com/2502/introduction-to-calayers-tutorial
根据文档UIImageView是一个UIView。它有一个CALAyer。 CALayer拥有cornerRadius属性。我在iOS 4.0上。
感谢
哈!你只是打败了我! – Roger 2011-06-15 10:12:43