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?
I would recommend using Storyboard Unwind Segues instead: https://developer.apple.com/library/ios/technotes/tn2298/_index.html
This insightful post also has a wealth of very useful implementation detail:
What are Unwind segues for and how do you use them?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With