We have 2 controllers: MainVC and ProfileVC.
From MainVC we go to ProfileVC with profileButton
press (left item on navigation bar).
In Profile VC we hav
I think u will need to dismiss the LAST viewcontroller first before going back by present modal segue, the viewcontroller is active, so it crash:
Use this after call segue from mainVC or something u wanted to go back:
[self dismissViewControllerAnimated:NO completion:nil]
or
[[self presentingViewController] dismissViewControllerAnimated:NO completion:nil]
or use push segue, it auto add a back button that automatically add back function