I want to fill out the polygon shape that I drew through Core Graphics with linear CGGradient. The CGContextDrawLinearGradient function draws a gradient from one point to another, but fills the entire view. How to display the gradient only inside the polygon shape that I drew?
objective-c cocoa cgcontext
titaniumdecoy
source share