2

I am using this function to take a snapshot for the current view

static UIImageView *screenShotOfView(UIView *view)
{
    UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0.0);
    CGContextRef context = UIGraphicsGetCurrentContext();
    [view.layer renderInContext:context];
    UIImageView *screenShot = [[UIImageView alloc] initWithImage:UIGraphicsGetImageFromCurrentImageContext()];
    UIGraphicsEndImageContext();
    return screenShot;
}

The snapshot doesn't work properly with the DatePicker. In the CALayer class reference : "Additionally, layers that use 3D transforms are not rendered [using renderInContext]"

is there a way around this?

thanks

ielyamani
  • 17,807
  • 10
  • 55
  • 90

0 Answers0