亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

iOS overFullScreen與fullScreen區(qū)別分析

 更新時(shí)間:2023年11月09日 11:11:21   作者:FieryDragon  
這篇文章主要介紹了iOS overFullScreen與fullScreen區(qū)別分析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪

overFullScreen與fullScreen區(qū)別

overFullScreen

The views beneath the presented content are not removed from the view hierarchy when the presentation finishes.  So if the presented view controller does not fill the screen with opaque content, the underlying content shows through.

當(dāng)顯示結(jié)束時(shí),顯示內(nèi)容下面的視圖不會從視圖層次結(jié)構(gòu)中刪除。因此,如果呈現(xiàn)的視圖控制器沒有用不透明的內(nèi)容填充屏幕,底層內(nèi)容就會顯示出來。

fullScreen

The views belonging to the presenting view controller are removed after the presentation completes.

屬于呈現(xiàn)視圖控制器的視圖在呈現(xiàn)完成后被移除。

詳見Xcode->Window->Developer Documentation。

總結(jié)

如果需要彈出半透明視圖使用overFullScreen,但是由于當(dāng)顯示結(jié)束時(shí),顯示內(nèi)容下面的視圖不會從視圖層次結(jié)構(gòu)中刪除,所以頁面消失時(shí)下面的視圖不會出發(fā)viewWillAppear等方法。

使用fullScreen,在頁面消失會觸發(fā)下面的視圖的viewWillAppear等方法,但是呈現(xiàn)視圖控制器的視圖在呈現(xiàn)完成后被移除實(shí)現(xiàn)半透明時(shí)透明部分直接黑屏展示。

??與熊掌不可兼得??????。

以上就是iOS overFullScreen與fullScreen區(qū)別分析的詳細(xì)內(nèi)容,更多關(guān)于iOS overFullScreen fullScreen的資料請關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

最新評論