use*_*058 0 objective-c nsurl
想象一下这是我的网址
NSURL *theURL=[NSURL URLWithString:@"http://stackoverflow.com/questions/ask"];
我怎样才能提取:
http://stackoverflow.com
?
jon*_*oll 8
怎么样 [NSString stringWithFormat:@"%@://%@", [theURL scheme], [theUrl host]]
[NSString stringWithFormat:@"%@://%@", [theURL scheme], [theUrl host]]
归档时间:
14 年 前
查看次数:
1671 次
最近记录: