zoukankan      html  css  js  c++  java
  • IOS7开发~API变化

    1、弃用 MKOverlayView 及其子类,使用类 MKOverlayRenderer
    2、弃用 Audio Toolbox framework 中的 AudioSession API,使用AV Foundation framework 中的 AVAudioSesssion 类;
    3、Core Location framework中的 CLRegion 类被 CLCircularRegion 代替,不过 CLRegion 类在同时支持 geographic和beacon regions的抽 象基类中继续存在;
    4、CBCentral 类中的 UUID 属性被弃用,使用属性 identifier 代替;
    5、UIKit framework中变化:
    UIViewController 中属性 wantsFullScreenLayout 被弃用,因为iOS7及之后,view controllers将始终支持全屏布局;
    UIPopoverController 不再提供箭头方向(arrow direction)的概念,改为展示方向(presentation direction);
    • UIColor objects that provided background textures for earlier versions of iOS are gone.

    • Many drawing additions to the NSString class are deprecated in favor of newer variants.

    6、libsyscall 类库中的 gethostuuid 功能被弃用;
    7、iOS7及以后,如果你要获取 iOS设备的MAC地址,系统会返回 02:00:00:00:00:00。如果你需要identify设备,使用 UIDevice 的 属性 identifierForVendor 代替。(那些出于发布广告的目的使用identifier的apps,应当考虑使用 ASIdentifierManager的属性 advertisingIdentifier 代替。)
     
  • 相关阅读:
    Integer和Integer常量池
    Spring中常用的23中设计模式
    GitHub 简单教程
    IDEA 中用好 Lombok,撸码效率至少提升5倍!
    Intellij IDEA中Mybatis Mapper自动注入警告的6种解决方案
    ROS常用命令和VIM常用命令
    ROS运行
    VINS-Mono运行
    环境配置相关
    C89标准和C99标准C11标准的区别
  • 原文地址:https://www.cnblogs.com/yingkong1987/p/3343935.html
Copyright © 2011-2022 走看看