iOS10 廢棄了一些API茵瀑,包括:
?? CloudKit的CKDiscoverAllContactsOperation, CKDiscoveredUserInfo,?????????? CKDiscoverUserInfosOperation, CKFetchRecordChangesOperation類勃救。這些類被 CKDiscoverAllUserIdentitiesOperation,CKUserIdentity,CKDiscoverUserIdentitiesOperation, and CKFetchRecordZoneChangesOperation類替代帮坚,后面這些類都支持記錄共享。CKSubscription 的一些API舵鳞,例如關(guān)于區(qū)域訂閱的變量和方法被 CKRecordZoneSubscription 類的相關(guān)API 替代理肺,關(guān)于查詢訂閱的變量和方法被CKQuerySubscription類的相關(guān)API替代乃摹。
?? 幾個(gè)與處處可見的內(nèi)容相關(guān)的NSPersistentStoreCoordinator 標(biāo)記
?? ADBannerView類和ADInterstitialAd類以及這兩個(gè)類在 UIViewController里的相關(guān)內(nèi)容
?? 一些與浮點(diǎn)類型變量相關(guān)的SKUniform里的內(nèi)容免糕。使用像initWithName:vectorFloat2: 和uniformWithName:matrixFloat2x2:等合適的方法替代赢乓。
? 一些與通知相關(guān)的UIKit類,例如 UILocalNotification,UIMutableUserNotificationAction,UIMutableUserNotificationCategory,UIUserNotificationAction, UIUserNotificationCategory, UIUserNotificationSettings等石窑。用User Notifications framework里的相關(guān)API來(lái)代替牌芋。
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? handleActionWithIdentifier:forLocalNotification:,handleActionWithIdentifier:forRemoteNotification:, didReceiveLocalNotification:withCompletion:,didReceiveRemoteNotification:withCompletion: 等這些WatchKit方法。用handleActionWithIdentifier:forNotification: 和didReceiveNotification:withCompletion:來(lái)替代松逊。
iOS10 API相較于上個(gè)版本增加或者刪除的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