My app has this weird bug in it. I have a method that returns a variable. Later on in the app, a variable is supposed to be set to what the method returns. This variable ends up being nil, while the variable returned by the method is not nil. It seems like the simulator is ignoring the part where the former variable is supposed to be set to the method's returned variable. I didn't intentionally set it to nil. It just happened inexplicably.