UINavigationController captures wrong view when calling popViewControllerWithAnimated: in some case.

Originator:pitiphong.ph
Number:rdar://19747362 Date Originated:07-Feb-2015
Status:Open Resolved:
Product:iOS SDK Product Version:8.1.3
Classification:Crash Reproducible:Always
 
Summary:
I have a tab view controller which has 2 tab with navigation controller in both tab.
I have a UITableViewController which I manage its view by creating a new view and then add the superclass’s table view to it as a subview. I push this view controller onto a UINavigationController. I open another tab in then also push my UITableViewController when I call popViewController on both navigation controller then switch back, Application will crash.
it said that UITableView try to access its delegate which already dealloc. The Navigation Controller still has the UITableView in its subview which it shouldn’t

Steps to Reproduce:
1. Open Sample Projejct
2. IN first tab, tap the first row to push into my UITableViewController
3. In second tab, tap the first row to push into my UITableViewController too.
4. Top the button in navigation bar to make both UINavigationController to call popViewController
5. Switch back to the first tab.

Expected Results:
Shows the navigation controller with its root view.

Actual Results:
Application crash.

Regression:
iOS 7 doesn’t crash.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!