Returning an NSString from an NSError

前端 未结 5 1806
暗喜
暗喜 2021-02-06 21:12

I am using the NSURLRequest class in my iPhone app, and the method that calls it returns an NSString which is great for when the connection goes throug

5条回答
  •  日久生厌
    2021-02-06 21:56

    I found that there are three main methods to NSError:

    • error (NSInteger)
    • domain (NSString)
    • userInfo (NSDictionary)

提交回复
热议问题