ios7 实现应用内保真截屏

    CGSize size = self.content.bounds.size;
    
    UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
    
    [self.content drawViewHierarchyInRect:self.content.bounds afterScreenUpdates:YES];
    
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
原文地址:https://www.cnblogs.com/iOSDeng/p/5708234.html