I have code that creates a UISearchController\' in my UIVIew\'sviewDidLoad`.
self.resultSearchController = ({
let controller = UISearch
It seem the view is lazy loaded, if you allocated the controller and never show it, the view is not loaded. In this case, if the controller is deallocated, you will received this warning. you could show it once, or call it's loadViewIfNeed() method, or use 'let _ = controller.view' to force load the view to avoid this warning.