Categories
ios swift uinavigationbar uitabbarcontroller uitableview

Large title crash application when view controller is opened for 2nd time in tab bar

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