I\'ve gone through a bunch of answers regarding this problem but none seem to relate to my problem.
I have two views, View 1 has a button. View 2 has a button.
You can try and check the below scenarios for the exception:
1) If nib file is missing then add the same in your Xcode
2) Put a check inside IBAction method before dismissing, refer this