0

i create kaleidoscope effect from uiview .it use a loft of sublayer and sublayer mask . then i use below code for render uiimage from uiview.

UIGraphicsBeginImageContextWithOptions(view.bounds.size, view.opaque, 0.0);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

enter image description here

render image as below:

enter image description here

The problem is the render image doesn't render mask effect.

Hedy Lau
  • 35
  • 6

0 Answers0