如何提取一次URL的方案和主机?

use*_*058 0 objective-c nsurl

想象一下这是我的网址

NSURL *theURL=[NSURL URLWithString:@"http://stackoverflow.com/questions/ask"];
Run Code Online (Sandbox Code Playgroud)

我怎样才能提取:

http://stackoverflow.com
Run Code Online (Sandbox Code Playgroud)

jon*_*oll 8

怎么样 [NSString stringWithFormat:@"%@://%@", [theURL scheme], [theUrl host]]