What kind of sarcastic error is this iOS?

后端 未结 2 1018
春和景丽
春和景丽 2021-01-30 03:51

I have some code I use to sort calendar dates that looks like this:

#if !(TARGET_IPHONE_SIMULATOR)
    NSString *formatString = [NSDateFormatter dateFormatFromT         


        
2条回答
  •  佛祖请我去吃肉
    2021-01-30 04:35

    The error does not happen in the code you posted. It means somewhere you have something that is supposed to be an NSDate and instead it's nil.

    As for the humor in the error message, I have never seen that message, but +1 to Apple. Some engineer in the Cocoa division is as funny as the good old engineers Apple used to have a lot of time ago.

    Check out the kind of diagnostics Apple's MPW C compiler used to spit out http://www.netfunny.com/rhf/jokes/91q3/cerrors.html

提交回复
热议问题