我希望能够通过程序截取我的应用程序的屏幕截图,代码已经可行,但是我有一个带有模糊效果的UIVisualEffectView,截屏后的图片没有了模糊效果!如何让截屏也包含模糊效果呢?
UIGraphicsBeginImageContextWithOptions(fullView.bounds.size, true, 1)
self.fullView.layer.renderInContext(UIGraphicsGetCurrentContext())
var viewImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil)