ios - Why: "Attempting to load .. while deallocating... :UISearchController:" -


i have root storyboard has button pushes viewcontrollerb.

viewcontrollerb has sort controller uisortcontroller.

viewcontrollerb has "back" method controlled root nav controller.

i'm getting following warning:

attempting load view of view controller while deallocating not allowed , may result in undefined behavior (<uisearchcontroller: 0x7ff10258ba60>)

i used apple's sample (membership required) add new uisearchcontroller.

has come across this? how resolve it?

i recommend using storyboard unwind segues instead: https://developer.apple.com/library/ios/technotes/tn2298/_index.html

this insightful post has wealth of useful implementation detail:

what unwind segues , how use them?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -