iOS: is it allowed to paint outside the bounds
Posted
by
Tbee
on Stack Overflow
See other posts from Stack Overflow
or by Tbee
Published on 2011-02-08T15:18:34Z
Indexed on
2011/02/08
15:26 UTC
Read the original article
Hit count: 270
If clipToBounds = YES then you can draw all you want, but you only can paint inside the bounds. If it is set to NO then painting outside the bounds is possible, but is it allowed?
The reason that I'm asking is because iOS uses the concept where the environment takes care of making sure the correct parts of the screen are (re)painted (e.g. setNeedsDisplay). If I draw outside my bounds, will it goof up?
I have tried it, and it seems to work, but?
© Stack Overflow or respective owner