zoukankan      html  css  js  c++  java
  • 公司项目适配IOS9总结

    1.JSONKit

       项目在xcode7 IOS9 开发环境上报错,不能进行JSONSring和JSONData的使用 。在真机上没有问题,在模拟器上put和post数据适合JSONKit报空对象野指针的错误。

    JSONData

    
    
      //没有修改
    NSData * jsonData = [[records keyValues] JSONData];//在ios9上JSONKit模拟器报错
     //采用系统
    NSData * jsonData = [NSJSONSerialization dataWithJSONObject:[records keyValues] options:NSJSONWritingPrettyPrinted error:nil]; NSString *sendResult = [self putData:jsonData toUrl:senderUrl];

    JSONString

       

      model.pictures= [arr JSONString];//在ios9上JSONKit模拟器报错
     //采用系统

    NSData *jsonData=[NSJSONSerialization dataWithJSONObject:arr options:NSJSONWritingPrettyPrinted error:nil];
     model.pictures = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding];
     

    Bitcode

    方法一:更新library使包含Bitcode,否则会出现以下中的警告;

    1
    (null): URGENT: all bitcode will be dropped because '/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/foldername/appname/GoogleMobileAds.framework/GoogleMobileAds(GADSlot+AdEvents.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.

    方法二:关闭Bitcode,方法见下图

     

    Https

    公司暂时不给升级服务器

    采用原来的请求方式

       

    更多请参考地址:IOS9适配教程

    IOS开发技术交流QQ群:491355147 欢迎加入一起讨论技术哦 

  • 相关阅读:
    C# 获取文件的修改时间、访问时间、创建时间
    Nhibernate Or多条件查询
    C# 将GridView当前页数据导成Execl
    C# 清空文件夹
    TreeView默认收缩
    JS控制控件的隐藏显示
    div置顶,不随滚动条滚动而滚动
    js 父窗体与子窗体的调用
    树形菜单的绑定以及链接
    2010.10.16 OA项目组一周报告 CQ
  • 原文地址:https://www.cnblogs.com/fxiaoquan/p/4818966.html
Copyright © 2011-2022 走看看