我想在CALayer上绘制CGPath,但是当我在CALayer中绘制CGPath时,它总是绘制在主UIView中。告诉我如何在CALayer上绘制CGPath。CALayer上的CGPath
当我尝试借鉴的CALayer路径它给了我这样的事情:
图片: http://www.freeimagehosting.net/h1k7e
我想在CALayer上绘制CGPath,但是当我在CALayer中绘制CGPath时,它总是绘制在主UIView中。告诉我如何在CALayer上绘制CGPath。CALayer上的CGPath
当我尝试借鉴的CALayer路径它给了我这样的事情:
图片: http://www.freeimagehosting.net/h1k7e
使用CAShapeLayer及其'path'属性将CGPath绘制到CALayer。
检查链接http://www.raywenderlich.com/2502/introduction-to-calayers-tutorial – tikhop 2012-08-02 07:27:22