I have an app (and can't change the architecture now).
Page 1, presents Page 2 (a Tabnav), with presentModalViewController. Then Page 2 can present Page 1 (via a button) with presentModalViewController also.
Problem is when I re-present Page 1, the App crashes, because page 1 is already presented or something. I can dismiss page 2, which shows page 1, but I can't take that option, because there are other pages that could be presented modally and then they'd be a level below on the stack instead of Page1.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller <AccountViewController: 0xc3824a0>.'
*** First throw call stack:
(0x1f3d012 0x1a32e7e 0xa63721 0xa64777 0xa647b7 0x908e 0x1a46705 0x97d920 0xbb9b24 0x1a46705 0x97d920 0x97d8b8 0xa3e671 0xa3ebcf 0xa3dd38 0x9ad33f 0x9ad552 0x98b3aa 0x97ccf8 0x2e48df9 0x2e48ad0 0x1eb2bf5 0x1eb2962 0x1ee3bb6 0x1ee2f44 0x1ee2e1b 0x2e477e3 0x2e47668 0x97a65c 0x258d 0x24b5 0x1)
libc++abi.dylib: terminate called throwing an exception