I try to learn the drawing process in UIView in iphone. as I understand the drawing process accurs only if the method [UIView drawRect] exists. it starts with [CALayer display] and from within that method [UIView drawRect] is called (to be precise :first [UIView drawLayer:layer inContext:context] is called and from within this method [UIView drawRect] is called).
I have 2 questions:
- how does the [CALayer display] method obtain the context of UIView? (which is used in [UIView drawLayer:layer inContext:context] within [CALayer display] method)
- how does updating of the contents of CALayer happens? (the updating which is discribed in the link here: [CALayer display] )