I have a table bar root view controller set to navigation view controller with view controller that has only a table view in it.
When I set navigation bar large titles to always or automatic it will crash the app when I open tab 2nd time.
Error message is shown below:
Assertion failure in -[UITableView _addScrollViewScrollObserver:]*
Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'ERROR: UIScrollView does not support multiple observers implementing _scrollViewWillEndDraggingWithVelocity:targetContentOffset:'
I don't have idea how to fix it. Thank you in advance.
sotryboard screenshot
Found it! Seems to be a bug with more than 1 Navigation controller in the stack.
So when my structure was (From top to bottom):
UINavigationController
UITabBarController
UINavigationControllers (Different tab items)
If I removed to main NavigationController (Top), the exception is gone! Hope they will fix it soon.
You should disable large titles for parent navigation controller (I guess you have more than one)
self.navigationBar.prefersLargeTitles = false
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