![](/img/trans.png)
[英]Display RootViewController only when dismiss current ViewController
[英]How to display exact copy of current ViewController when a button in current ViewController is clicked?
我想顯示另一個ViewController
,當在當前ViewController
單擊按鈕時,該ViewController
必須是具有相同UI(像Safari中一樣為空的新標簽)的當前ViewController
副本。 為了清楚理解,當我們單擊+按鈕iOS Safari時,將打開Safari中的新標簽頁。 我想在我的項目中包含此功能。
加載副本與新建標簽不同。 您正在尋找創建相同視圖控制器的新實例。 因此,只需使用新的實例變量再次實例化它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.