我想从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\""; }@H_502_5@我想显示最后一行:“文件存在”,但是我该如何选择它.
我试过了:
localizedDescription localizedFailureReason localizedRecoverySuggestion localizedRecoveryOptions recoveryAttempter@H_502_5@不显示“文件存在”.