I have root storyboard that has a button that pushes ViewControllerB.
ViewControllerB has a sort controller UISortController
.
ViewControllerB has a "back" method that is controlled by the root nav controller.
I'm getting the following warning:
Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UISearchController: 0x7ff10258ba60>)
I used Apple's sample (membership required) to add the new UISearchController.
Has anyone come across this? How do I resolve it?