iOS 截屏幕

来源:互联网 发布:apache errordocument 编辑:程序博客网 时间:2024/05/22 09:42
    UIGraphicsBeginImageContext(self.view.bounds.size);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *uiImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
原创粉丝点击