I am writing a program in Swift, but I am getting a really strange error. Ok here is the problem:
I press a button from one viewcontroller and go to another viewcontroller (standard navigation controller - a new view is pushed onto the stack). In this new viewcontroller I have overriden the ViewDidDisappear. When i go back to the previous viewcontroller this is obviously called. BUT when I now go back to this viewcontroller again, the method is called when the view appears and a second after the app crashes!
I get the following error:
EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0))
Asked
Active
Viewed 484 times
3

Adam
- 26,549
- 8
- 62
- 79

user3213297
- 63
- 1
- 8
-
1Can you post the code for the view controller? Specifically the view lifecycle methods would be interesting. – milch Sep 10 '15 at 08:15
-
clean, recompile, retry - if the error persists, post code – Daij-Djan Sep 10 '15 at 08:34
-
I'm currently experience the exact same thing...in 2017 – Krekin Nov 01 '17 at 17:36