Before you draw the gradient, set a clipping path on your graphics context.
Using drawRect except view frame
Pergunta
I draw some screenColor gradient with - (void)drawRect:(CGRect)rect I want not draw it on full screen except selected frame. Is it possible to do or what is the faster way to accomplish it?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow