Get the domain part of an URL string?

后端 未结 5 1976
一整个雨季
一整个雨季 2020-12-24 13:16

I have an NSString with an URL, in this way:

http://someurl.com/something

How would I get someurl.com only? I\'ve already trie

5条回答
提交回复
热议问题