NSString length restriction
Do we have a开发者_开发问答ny NSString length restriction when creating an object of NSURL class?
There is no restriction that's part of the API. But if you create a ridiculously long URL, there is no guarantee that it will work in all situations (say, some servers might just say no). It's generally considered a good idea to avoid the need for exceedingly long URLs.
精彩评论