zoukankan      html  css  js  c++  java
  • 关于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.jpg
    16 2015-12-29 12:22:55.192 知乎日报[27244:3447155] https://pic3.zhimg.com/b4f7acc26514fb634131b04a430e6cbf_b.jpg
    17 2015-12-29 12:22:55.192 知乎日报[27244:3447155] https
    18 2015-12-29 12:22:55.192 知乎日报[27244:3447155] //pic3.zhimg.com/b4f7acc26514fb634131b04a430e6cbf_b.jpg
    19 2015-12-29 12:22:55.192 知乎日报[27244:3447155] pic3.zhimg.com
    20 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.jpg
    23 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.jpg
    27 2015-12-29 12:22:55.194 知乎日报[27244:3447155] jpg
  • 相关阅读:
    innodb临键锁锁定范围
    详解 MySql InnoDB 中的三种行锁(记录锁、间隙锁与临键锁)
    解决Jenkins邮件配置问题
    解决import模块后提示无此模块的问题
    【转】Linux下cp: omitting directory `XXX'问题解决
    Python之异常处理(执行python文件时传入参数)
    Python之发邮件
    Python之递归
    Python之参数类型、变量
    linux sed命令详解
  • 原文地址:https://www.cnblogs.com/jackma86/p/5130815.html
Copyright © 2011-2022 走看看