现在的位置: 首页 > 综合 > 正文

IOS7开发~API变化

2018年05月11日 ⁄ 综合 ⁄ 共 877字 ⁄ 字号 评论关闭
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 代替。)


【上篇】
【下篇】

抱歉!评论已关闭.