【发布时间】:2015-08-26 13:42:07
【问题描述】:
我已经完成了没有导航栏的完整截图的编码,但我也不想要“激励我”按钮。
如果有人知道如何将裁剪屏幕截图分享到 Facebook?
截图代码如下:
UIGraphicsBeginImageContextWithOptions(UIScreen.mainScreen().bounds.size,false,0);
self.view.drawViewHierarchyInRect(view.bounds, afterScreenUpdates: true)
var image:UIImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
【问题讨论】:
标签: ios swift uigraphicscontext