iOS 开发 iOS开发专区iOS Developer

iOS10 废弃的API

2016-09-22  本文已影响2379人  f2503bba4cfa

iOS10 废弃了一些API,包括:

   CloudKit的CKDiscoverAllContactsOperation, CKDiscoveredUserInfo,           CKDiscoverUserInfosOperation, CKFetchRecordChangesOperation类。这些类被 CKDiscoverAllUserIdentitiesOperation,CKUserIdentity,CKDiscoverUserIdentitiesOperation, and CKFetchRecordZoneChangesOperation类替代,后面这些类都支持记录共享。CKSubscription 的一些API,例如关于区域订阅的变量和方法被 CKRecordZoneSubscription 类的相关API 替代,关于查询订阅的变量和方法被CKQuerySubscription类的相关API替代。

   几个与处处可见的内容相关的NSPersistentStoreCoordinator 标记

   ADBannerView类和ADInterstitialAd类以及这两个类在 UIViewController里的相关内容

   一些与浮点类型变量相关的SKUniform里的内容。使用像initWithName:vectorFloat2: 和uniformWithName:matrixFloat2x2:等合适的方法替代。

  一些与通知相关的UIKit类,例如 UILocalNotification,UIMutableUserNotificationAction,UIMutableUserNotificationCategory,UIUserNotificationAction, UIUserNotificationCategory, UIUserNotificationSettings等。用User Notifications framework里的相关API来代替。

                                                                                                                                                                                                                                           handleActionWithIdentifier:forLocalNotification:,handleActionWithIdentifier:forRemoteNotification:, didReceiveLocalNotification:withCompletion:,didReceiveRemoteNotification:withCompletion: 等这些WatchKit方法。用handleActionWithIdentifier:forNotification: 和didReceiveNotification:withCompletion:来替代。

iOS10 API相较于上个版本增加或者删除的framework

iOS 9.3 to iOS 10.0 API Differences

Objective-C

/usr/include

Accelerate

AudioToolbox

AudioUnit

AVFoundation

AVKit

CallKit (Added)

CFNetwork

CloudKit

Contacts

CoreBluetooth

CoreData

CoreFoundation

CoreGraphics

CoreImage

CoreLocation

CoreMedia

CoreMotion

CoreSpotlight

CoreTelephony

CoreText

CoreVideo

EventKit

EventKitUI

ExternalAccessory

Foundation

GameController

GameKit

GameplayKit

GLKit

HealthKit

HomeKit

iAd

ImageIO

Intents (Added)

IntentsUI (Added)

JavaScriptCore

LocalAuthentication

MapKit

MediaPlayer

Messages (Added)

MessageUI

Metal

MetalKit

MetalPerformanceShaders

ModelIO

NetworkExtension

NotificationCenter

OpenGLES

PassKit

Photos

PushKit

QuartzCore

QuickLook

ReplayKit

SafariServices

SceneKit

Security

Speech (Added)

SpriteKit

SystemConfiguration

UIKit

UserNotifications (Added)

UserNotificationsUI (Added)

VideoSubscriberAccount (Added)

VideoToolbox

WatchConnectivity

WatchKit

WebKit

XCTest

Swift

Accelerate

Accounts

AddressBook

AddressBookUI

AdSupport

AssetsLibrary

AudioToolbox

AudioUnit

AVFoundation

AVKit

CallKit (Added)

CFNetwork

CloudKit

Contacts

ContactsUI

CoreAudio

CoreAudioKit

CoreBluetooth

CoreData

CoreFoundation

CoreGraphics

CoreImage

CoreLocation

CoreMedia

CoreMIDI

CoreMotion

CoreSpotlight

CoreTelephony

CoreText

CoreVideo

Darwin

Dispatch

EventKit

EventKitUI

ExternalAccessory

Foundation

GameController

GameKit

GameplayKit

GLKit

GSS

HealthKit

HealthKitUI

HomeKit

iAd (Added)

iAdJS (Removed)

ImageIO

Intents (Added)

IntentsUI (Added)

JavaScriptCore

libkern

LocalAuthentication

MachO

MapKit

MediaAccessibility

MediaPlayer

MediaToolbox

Messages (Added)

MessageUI

Metal

MetalKit

MetalPerformanceShaders

ModelIO

MultipeerConnectivity

NetworkExtension

NewsstandKit

NotificationCenter

ObjectiveC

OpenAL

OpenGLES

os

PassKit

Photos

PhotosUI

PushKit

QuartzCore

QuickLook

ReplayKit

SafariServices

SceneKit

Security

simd

Social

Speech (Added)

SpriteKit

StoreKit

Swift

SystemConfiguration

Twitter (Removed)

UIKit

UserNotifications (Added)

UserNotificationsUI (Added)

VideoSubscriberAccount (Added)

VideoToolbox

WatchConnectivity

WatchKit

WebKit

XCTest

上一篇下一篇

猜你喜欢

热点阅读