我想从NSerror得到一些有用的信息.
我打印出[error userInfo],显示如下:
我打印出[error userInfo],显示如下:
{ NSFilePath = "/Users/apple/Library/Application Support/iPhone Simulator/5.1/Applications/08260B6A-4D65-48DF-ADD1-FFC8750081E8/Documents/abc"; NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=17 \"The operation couldn\U2019t be completed. File exists\""; }
我想显示最后一行:“文件存在”,但是我该如何选择它.
我试过了:
localizedDescription localizedFailureReason localizedRecoverySuggestion localizedRecoveryOptions recoveryAttempter