3

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))

Adam
  • 26,549
  • 8
  • 62
  • 79
user3213297
  • 63
  • 1
  • 8

0 Answers0