我正在繪製應用程序,我必須通過電子郵件發送當前繪圖。我設法獲得當前屏幕的屏幕截圖。但是,如何通過MFMailComposeViewControll
電子郵件發送該圖像?這裏是我用來獲取屏幕上的代碼出手iOs將我的當前屏幕添加到電子郵件
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *currentScreen = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
感謝名單。那些工作很有魅力 – BigAppleBump 2012-03-03 17:49:04