Multiple drawLayer:
how can i use drawLayer for multiple layers in one class? I was thinking maybe something like this:
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context {
if(layer == layer1) {
//do this
}
if(layer == layer2) {
//do someth开发者_JAVA百科ing else
}
}
how would i do that?
精彩评论