你的位置:首页 > 操作系统

[操作系统]关于NSURL的一些属性的记录


关于NSURL的一些属性的记录

 1  NSLog(@"%@", request.URL.absoluteString); 2  NSLog(@"%@", request.URL.relativeString); 3  NSLog(@"%@", request.URL.scheme); 4  NSLog(@"%@", request.URL.resourceSpecifier); 5  NSLog(@"%@", request.URL.host); 6  NSLog(@"%@", request.URL.port); 7  NSLog(@"%@", request.URL.user); 8  NSLog(@"%@", request.URL.path); 9  NSLog(@"%@", request.URL.fragment);10  NSLog(@"%@", request.URL.parameterString);11  NSLog(@"%@", request.URL.query);12  NSLog(@"%@", request.URL.relativePath);13  NSLog(@"%@", request.URL.pathExtension);14  15 2015-12-29 12:22:55.192 知乎日报[27244:3447155] https://pic3.zhimg.com/b4f7acc26514fb634131b04a430e6cbf_b.jpg16 2015-12-29 12:22:55.192 知乎日报[27244:3447155] https://pic3.zhimg.com/b4f7acc26514fb634131b04a430e6cbf_b.jpg17 2015-12-29 12:22:55.192 知乎日报[27244:3447155] https18 2015-12-29 12:22:55.192 知乎日报[27244:3447155] //pic3.zhimg.com/b4f7acc26514fb634131b04a430e6cbf_b.jpg19 2015-12-29 12:22:55.192 知乎日报[27244:3447155] pic3.zhimg.com20 2015-12-29 12:22:55.193 知乎日报[27244:3447155] (null)21 2015-12-29 12:22:55.193 知乎日报[27244:3447155] (null)22 2015-12-29 12:22:55.193 知乎日报[27244:3447155] /b4f7acc26514fb634131b04a430e6cbf_b.jpg23 2015-12-29 12:22:55.193 知乎日报[27244:3447155] (null)24 2015-12-29 12:22:55.193 知乎日报[27244:3447155] (null)25 2015-12-29 12:22:55.193 知乎日报[27244:3447155] (null)26 2015-12-29 12:22:55.193 知乎日报[27244:3447155] /b4f7acc26514fb634131b04a430e6cbf_b.jpg27 2015-12-29 12:22:55.194 知乎日报[27244:3447155] jpg