I have a problem with the application on the simulator. Problem:
EXC_BAD_ACCESS, arising in objc_msgSend in Thread 1.
Screenshot:

In my application, I have several ViewController . when I click the back button of the UINavigationBar , this type of problem occurs, I cannot explain my problem because all functions work correctly.
Example: -
1 - fitstVController (works correctly)
=> it has a UITableView, when I click on a specific row, then it will switch to another UIViewController (SecoundViewController)
2 - SecoundViewController (work correctly)
=> has a UITableView and a UIActionSheet. when I select the UiActionSheet button, then another UIViewController (ThirdViewController) is open
3 - ThirdViewController (working correctly)
=> it has a UITableView and several UIPickerView. But HERE IS A PROBLEM THAT I CAN'T RETURN TO THE PREVIOUS UIViewController (SecoundViewController). => when I do this, then EXC_BAD_ACCESS is generated (Code = 1, address = 0x30000008) .
user2289379
source share