-1
我是Swift和IOS編程中的新手從ram中刪除模態ViewController SWIFT
我想知道如何從內存ram中刪除我的模態ViewController。
這種我用來打開的。
let vc = self.storybordar?.instantieteViewController(withIndentifier:"indentifier") as UIViewController
self.present(vc,animated:true,completion:nil)
我刪除這麼
self.dissmiss(animated:true,completion:nil)
我的控制器,直至關閉,但我的記憶不會改變
什麼happinig是當我打開我的模式我的記憶增大,當我閉上我的記憶沒有按不會減少。
我已經解決了我的問題。 我用removeFromSuperView() 非常感謝! –