2014/02/07

drawInContext: is not called in CALayer

I wanted to draw lines and curves etc with CALayer class, and I knew I had to write code in drawInContext: method and the method is called when I call setNeedsDisplay method.

But I don’t know why but the method is not called…
Finally I found that I had to set frame property of the layer before calling setNeedsDisplay.
Develop | Comments(2) | Trackback(0)
Comment
THX
Thanks, this helped me a lot!
Re: THX
> Thanks, this helped me a lot!

: )

管理者のみに表示