ios - Using drawRect except view frame -


i draw screencolor gradient - (void)drawrect:(cgrect)rect want not draw on full screen except selected frame. possible or faster way accomplish it?

before draw gradient, set clipping path on graphics context.

https://developer.apple.com/library/ios/documentation/graphicsimaging/conceptual/drawingwithquartz2d/dq_paths/dq_paths.html#//apple_ref/doc/uid/tp30001066-ch211-tpxref126


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -