I want to force the back button of my navigationViewController to call the dissmissmodalViewController to prevent the fact that the user tap the back button to fast and the app send a message to a deallocated instance… how can I solve?
Thanks
I want to force the back button of my navigationViewController to call the dissmissmodalViewController
Share
You question feels a bit odd because the back button typically does something like:
I’m not sure how that is impacting any modal view controllers. If you really need to change its functionality, then you would basically hide the built in back button and replace it with your own custom one kind of like this: (put this in viewDidLoad)
then setup your new method to handle the button push
good luck with your project.