zoukankan      html  css  js  c++  java
  • 遇到的一些奇葩问题

    1.字符串直接赋值在block中不能用

     lHtml1=[NSString stringWithFormat:@"%@%@: %@",self.appNameString,self.titleLabel.text,self.urlString];

    要给其分配地址才行

     lHtml1 = [[NSString alloc]initWithString:[NSString stringWithFormat:@"%@%@: %@",self.appNameString,self.titleLabel.text,self.urlString]];

    2.webView直接用地址请求有时候有用有时候又不行

     [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlString]]];

    换一种形式可行

     NSMutableURLRequest* req=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:self.urlStringcachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10000];

      [req setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];

        [webView loadRequest:req];

  • 相关阅读:
    装饰
    统一软件开发过程之2:用例文本书写
    统一软件开发过程之1:创建领域模型
    工厂方法
    volatile
    中介者
    建造者
    C#委托,事件与回调函数
    控件资源嵌入
    装饰
  • 原文地址:https://www.cnblogs.com/YuFly-lyx/p/5844800.html
Copyright © 2011-2022 走看看