无法以编程方式解除/禁用iOS 11中显示的即时标记屏幕截图

时间:2017-12-28 05:06:23

标签: ios objective-c ios11

以下代码我在ios 10中应用,这完美无缺。但是当ios 11出现时,它会自动保存所有屏幕截图,不允许忽略即时标记截图。

for (int k = 0; k<[imgAry count]; k++) {
    UIGraphicsBeginImageContextWithOptions(imgBaseView.bounds.size, NO, [UIScreen mainScreen].scale);
    [imgBaseView drawViewHierarchyInRect:imgBaseView.boundsafterScreenUpdates:YES];
    [imgBaseView.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    CGImageDestinationAddImage(destination, image.CGImage, (__bridge 
    CFDictionaryRef)frameProperties);
}

0 个答案:

没有答案