开发者

iPhone - NSError reference : constants and code

I'm searching some precise doc where I 开发者_开发问答can associate an error number to its constant. Let's say, for example, I'm searching the constant of NSError.code = 102. How may I do to find it ? Searching the Web does not help. Searching the headers file is a headache.

How would you do this ?


you can find some of refrences here for NSError

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/Reference/Reference.html

you can found some of error detail here

http://www.lifeasbob.com/Code/ErrorCodes.aspx


The code should belong to the domain of NSError, check the documentation for the associated error domain and you should find the correct code. The domain is also a good hint of which headers to search if documentation is unavailable. Apple does list the Foundation Constants.


It's WebKitErrorDomain - WebKitErrorFrameLoadInterruptedByPolicyChange

Frame load interrupted error while loading a word document in UIWebView

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Miscellaneous/WebKit_Constants/#//apple_ref/doc/constant_group/WebKit_Policy_Errors

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜