iOS系統(tǒng)特性
iOS8
當(16.10.23)前最低支持多為iOS8,優(yōu)先考慮iOS9和iOS10吧
iOS9(部分接觸到的)
-
App Transport Security(ATS)特性
默認要求使用安全連接https。
自測時希望使用http可以在info.plist中添加設置

-
新增關鍵字
關鍵字只能用來描述對象,不能描述基本數(shù)據(jù)類型(int等等)
- nullable :可能為空,在訪問屬性和調用方法都會提示
@property(nonatomic,strong,nullable) NSString *name;
@property(nonatomic,strong) NSString * _Nullable name;
- nonnull :不能為空
@property (nonatomic, strong, nonnull) NSString *name;
@property (nonatomic, strong) NSString * _Nonnull name;
- null_resettable :get方法不能為空,set方法可以為空
iOS10
-
SiriKit
支持視頻電話、消息、語音支付和收款、搜索照片等
框架:
Intents.framework:獲取和解析結果
IntentsUI.framework:反饋結果
-
Messages App
用戶可以創(chuàng)建與消息應用程序進行交互的extension。用戶可以創(chuàng)建兩種類型的extension:Sticker pack、iMessage app(需要導入Messages.framework框架)
框架:
Messages.framework
-
UserNotification
引入了UserNotification.framework框架,支持本地推送和遠程推送,同時有UserNotificationUI.framework框架允許自定義本地推送和遠程推送的外觀。
框架:
UserNotification.framework
UserNotificationUI.framework
-
Speech Recognition
語音識別API
框架:
Speech.framework
-
CallKit
VoIP方面。
鎖屏后VoIP網(wǎng)絡電話可以直接用iPhone系統(tǒng)的UI接聽
網(wǎng)絡電話可以拓展到系統(tǒng)電話中,可以做黑名單功能
-
Custom Keyboard
可以實現(xiàn)長按地球建彈出其他鍵盤
通過handleInputModeListFromView:withEvent:彈出系統(tǒng)鍵盤列表
-
App Extension
允許第三方應用對自帶基礎app的拓展關聯(lián)
Call Directory (網(wǎng)絡電話應用)
Intents (調用Siri、Apple map)
Intents UI(調用Siri、Apple map的自定義界面)
Messages(iMessage拓展)
Notification Content(內容通知)
Notification Service(服務通知)
StickerPack(iMessage表情包)
-
隱私權限問題
調用各種如Camera、Contacts、Microphone必須在info.plist做一個描述,用來彈窗告訴用戶。不然會導致崩潰
