Parse NSURL path and query on iOS

前端 未结 6 837
耶瑟儿~
耶瑟儿~ 2020-12-16 16:42

Are there any standard objects or functions to parse an NSURL\'s components? Clearly I could write one, but why re-invent the wheel?

[NSURL path] will

6条回答
  •  甜味超标
    2020-12-16 17:20

    If you do decide to write one (I'm not sure there are existing methods of getting the components you want), you might want to use NSString's componentsSeparatedByString.

提交回复
热议问题