如果是继承CALayer的自定义的CALayer类,实现-(void)drawInContext:(CGContextRef)ctx方法即可。但这个方法不会自动调用,需要执行CALayer的setNeedsDisplay方法触发。
確定! 回上一頁