iOS 截屏並保存在本地

點擊截取圖片按鈕觸發下面的代碼:spa

    UIGraphicsBeginImageContext(self.view.bounds.size);3d

    

    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];orm

    

    UIImage *image=UIGraphicsGetImageFromCurrentImageContext();圖片

    

    UIGraphicsEndImageContext();it

    

    UIImageWriteToSavedPhotosAlbum(image,self, nil, nil);im

相關文章
相關標籤/搜索