In our app we have a UITableViewController that has a SearchController: On clicking cancel, button app crashes...
error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIFullscreenPresentationController adaptivePresentationController]: unrecognized selector sent to instance 0x7fb9bdc6c0a0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000103ce71bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000102cd9735 objc_exception_throw + 48
2 CoreFoundation 0x0000000103d05f44 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x0000000103cebed6 ___forwarding___ + 1446
4 CoreFoundation 0x0000000103cedda8 _CF_forwarding_prep_0 + 120
5 UIKitCore 0x000000010d0ad047 -[UISearchController _searchPresentationController] + 139
6 UIKitCore 0x000000010d08de52 -[_UISearchControllerTransplantSearchBarAnimator animateTransition:] + 208
7 UIKitCore 0x000000010c92c8d3 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 3132
8 UIKitCore 0x000000010d03c0d2 _runAfterCACommitDeferredBlocks + 318
9 UIKitCore 0x000000010d02ab2c _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
10 UIKitCore 0x000000010d059efc _afterCACommitHandler + 135
11 CoreFoundation 0x0000000103c4bc27 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
12 CoreFoundation 0x0000000103c460be __CFRunLoopDoObservers + 430
13 CoreFoundation 0x0000000103c46751 __CFRunLoopRun + 1537
14 CoreFoundation 0x0000000103c45e11 CFRunLoopRunSpecific + 625
15 GraphicsServices 0x000000010a7421dd GSEventRunModal + 62
16 UIKitCore 0x000000010d03081d UIApplicationMain + 140
17 ZyDentalDoctor 0x000000010198fdb4 main + 68
18 libdyld.dylib 0x0000000106be9575 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException