I have a view whose mask I had set earlier in some method, now I want to extract the CGPathRef which was the shape of the mask without having nothing at all, just the view with mask. How do I do that?
CAShapeLayer* maskLayer = [CAShapeLayer layer];
maskLayer = (CAShapeLayer* )myView.layer.mask;
CGPathRef x = maskLayer.path;
tried this, didn't work.