我已經完成了沒有導航欄的全屏截圖的編碼,但我也不想要「激勵我」按鈕。裁剪截圖並分享?
另外,如果有人知道如何分享作物截圖給Facebook?
下面是截圖代碼:
UIGraphicsBeginImageContextWithOptions(UIScreen.mainScreen().bounds.size,false,0);
self.view.drawViewHierarchyInRect(view.bounds, afterScreenUpdates: true)
var image:UIImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
廣東話,我們只寫了代碼,並裁剪圖像並將其保存到圖片庫 – motivation1
89感謝已經更新了我的答案 – Swinny89
@swimnny您answer.Its偉大的,但寬度不來好,所以如何改變寬度 – motivation1