NSURL基本方法以及UIWebview下拉刷新

NSLog(@"scheme:%@", [url scheme]); //协议 http

NSLog(@"host:%@", [url host]);     //域名 www.baidu.com

NSLog(@"absoluteString:%@", [url absoluteString]); //完整的url字符串 

NSLog(@"relativePath: %@", [url relativePath]); //相对路径 search

NSLog(@"port :%@", [url port]);  // 端口 8080

NSLog(@"path: %@", [url path]);  // 路径 search

NSLog(@"pathComponents:%@", [url pathComponents]); // search
NSLog(@"Query:%@", [url query]);  //参数 id=1

NSURL *url = [NSURL URLWithString:@"http://www.baidu.com/search?id=1"];

UIWebview添加下拉刷新
[self.tableview.scrollview addheadfresh];

你可能感兴趣的:(NSURL基本方法以及UIWebview下拉刷新)