0
有沒有什麼辦法可以將UIView捕獲到當前不可見或者不在框架中的UIImage。下面的代碼我現在使用:如何捕獲UIView作爲當前可見幀外的圖像?
UIGraphicsBeginImageContextWithOptions(_myView.bounds.size, _myView.opaque, 0.0f);
[theView drawViewHierarchyInRect:_myView.bounds afterScreenUpdates:NO];
UIImage * snapshotImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
請檢查在此線程的答案, http://stackoverflow.com/a/4919804/4030948 –