Skip to content

Instantly share code, notes, and snippets.

@skwashua
Created October 3, 2014 17:01
Show Gist options
  • Save skwashua/adca118bb7402f517ad5 to your computer and use it in GitHub Desktop.
Save skwashua/adca118bb7402f517ad5 to your computer and use it in GitHub Desktop.
UIBezierPath *myClippingPath = ...
CAShapeLayer *mask = [CAShapeLayer layer];
mask.path = myClippingPath.CGPath;
myView.layer.mask = mask;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment