欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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)容下面的視圖不會(huì)從視圖層次結(jié)構(gòu)中刪除。因此,如果呈現(xiàn)的視圖控制器沒(méi)有用不透明的內(nèi)容填充屏幕,底層內(nèi)容就會(huì)顯示出來(lái)。

fullScreen

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

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

詳見(jiàn)Xcode->Window->Developer Documentation

總結(jié)

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

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

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

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

相關(guān)文章

最新評(píng)論