Hey guys, I am having a problem with my macOS code, I am attempting to call a function that is in View controller 1 from a function in View Controller 2.
I populate the parameter ‘int’ in VC 2 but when it gets to VC 1 it throws a fatal error for unexpectedly finding nil. However due to the fact that the error is generated on different line of VC1 every time means that the variable ‘int’ does have a value and therefore should not be nil.
why is the code doing this?
any help you all could give would be great.
Thanks. Terry Baillie