0
我提出一個View屏幕是這樣的:如何阻止CGBitmapContextCreate從另一個視圖中拾取圖像數據?
imageLayer.alpha=0;
imageLayer.image = nil;
[self presentModalViewController:sampleView animated:YES];
我遇到的問題是,imageLayer(這是一個UIImageView)的內容出現倒掛和向後sampleView加載時。包含imageLayer內容的sampleView中的圖層是一個自定義UIView,它使用CGBitmapContextCreate將部分屏幕緩存爲位圖。在試圖解決這個問題時,我發現如果imageLayer不存在,問題就會消失。上面我試過設置alpha爲0,圖像爲nil(在presentModalViewController觸發前將它從屏幕上移除)。爲什麼圖像會以單獨的視角向後倒置?