iOS10初探

一.新增框架简介

1. #import <Speech/Speech.h>

这个是苹果推出的语音识别框架,识别的语音数据保存在苹果服务器上

2.#import <UserNotifications/UserNotifications.h>
  #import <UserNotificationsUI/UNNotificationContentExtension.h>

可以自定义本地推送和远程推送UI界面,还可以通过 APP extension 自定义UI界面和交互操作

3. #import <Messages/Messages.h>   

可以通过APP extension 和Messages进行交互,并可以让用户发送文字,贴纸,媒体文件

You can create two types of app extensions:

  • A Sticker pack provides a set of stickers that users can add to their Messages content.

  • An iMessage app lets you present a custom user interface within the Messages app, create a sticker browser, include text, stickers, and media files within a conversation, and create, send, and update interactive messages.

https://developer.apple.com/reference/messages

4. #import <CallKit/CallKit.h>

可以使VoIP apps 在锁屏界面接听 VoIP电话,还可以在app extensions中进行来电拦截和来电识别(这个是苹果和腾讯手机管家合作开发的)

5. #import <Intents/Intents.h>
   #import <IntentsUI/IntentsUI.h>  (SiriKit)

使用该框架可以通过Siri实现以下功能:
1)音视频通话
2)发消息
3)支付
4)查找照片
5)户外锻炼
6)预约车程

https://developer.apple.com/reference/intents

6. #import <VideoSubscriberAccount/VideoSubscriberAccount.h>

这个框架是给有线电视和卫星电视进行身份验证和授权(大概没有什么用)

7.Wide Color

可以使用更广泛的色域的色彩搭配sRGB颜色。

+ (UIColor *)colorWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha NS_AVAILABLE_IOS(10_0);

- (UIColor *)initWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha NS_AVAILABLE_IOS(10_0);

二.相关API头文件

//
//  Speech.h
//
//  Copyright (c) 2016 Apple, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <Speech/SFSpeechRecognitionResult.h>
#import <Speech/SFSpeechRecognitionRequest.h>
#import <Speech/SFSpeechRecognitionTask.h>
#import <Speech/SFSpeechRecognitionTaskHint.h>
#import <Speech/SFSpeechRecognizer.h>
#import <Speech/SFTranscriptionSegment.h>
#import <Speech/SFTranscription.h>


//
//  UserNotifications.h
//  UserNotifications
//
//  Copyright © 2015 Apple Inc. All rights reserved.
//

#import <UserNotifications/NSString+UserNotifications.h>
#import <UserNotifications/UNError.h>
#import <UserNotifications/UNNotification.h>
#import <UserNotifications/UNNotificationAction.h>
#import <UserNotifications/UNNotificationAttachment.h>
#import <UserNotifications/UNNotificationCategory.h>
#import <UserNotifications/UNNotificationContent.h>
#import <UserNotifications/UNNotificationRequest.h>
#import <UserNotifications/UNNotificationResponse.h>
#import <UserNotifications/UNNotificationSettings.h>
#import <UserNotifications/UNNotificationSound.h>
#import <UserNotifications/UNNotificationTrigger.h>
#import <UserNotifications/UNUserNotificationCenter.h>

#import <UserNotifications/UNNotificationServiceExtension.h>

//
//  UserNotificationsUI.h
//  UserNotificationsUI
//
//  Copyright © 2015 Apple. All rights reserved.
//

#import <UserNotificationsUI/UNNotificationContentExtension.h>

//
//  Messages.h
//  Messages
//
//  Copyright © 2016 Apple Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <Messages/MSMessagesAppViewController.h>

#import <Messages/MSConversation.h>

#import <Messages/MSSession.h>
#import <Messages/MSMessage.h>
#import <Messages/MSMessageLayout.h>
#import <Messages/MSMessageTemplateLayout.h>

#import <Messages/MSSticker.h>
#import <Messages/MSStickerView.h>
#import <Messages/MSStickerBrowserViewDataSource.h>
#import <Messages/MSStickerBrowserView.h>
#import <Messages/MSStickerBrowserViewController.h>
//
//  CallKit.h
//  CallKit
//
//  Copyright © 2015 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <CallKit/CXBase.h>

#import <CallKit/CXAuthorization.h>

#import <CallKit/CXCallUpdate.h>
#import <CallKit/CXError.h>

#import <CallKit/CXAction.h>
#import <CallKit/CXCallAction.h>
#import <CallKit/CXStartCallAction.h>
#import <CallKit/CXAnswerCallAction.h>
#import <CallKit/CXEndCallAction.h>
#import <CallKit/CXSetHeldCallAction.h>
#import <CallKit/CXSetMutedCallAction.h>
#import <CallKit/CXSetGroupCallAction.h>
#import <CallKit/CXPlayDTMFCallAction.h>

#import <CallKit/CXTransaction.h>

#import <CallKit/CXProvider.h>
#import <CallKit/CXProviderConfiguration.h>

#import <CallKit/CXCall.h>
#import <CallKit/CXCallObserver.h>
#import <CallKit/CXCallController.h>

//
//  Intents.h
//  Intents
//
//  Copyright © 2016 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for Intents.
FOUNDATION_EXPORT double IntentsVersionNumber;

//! Project version string for Intents.
FOUNDATION_EXPORT const unsigned char IntentsVersionString[];

#ifndef __INTENTS_INDIRECT__
#define __INTENTS_INDIRECT__
#endif

// Base
#import <Intents/INIntent.h>
#import <Intents/INIntentErrors.h>
#import <Intents/INIntentIdentifiers.h>
#import <Intents/INIntentResponse.h>
#import <Intents/INIntentResolutionResult.h>
#import <Intents/INIntentResolutionResultUnsupportedReason.h>
#import <Intents/INDomainHandling.h>
#import <Intents/INInteraction.h>

// Intents & Intent Responses
#import <Intents/INIntents.h>
#import <Intents/INIntentResponses.h>

// Extension
#import <Intents/INExtension.h>

// Common Types
#import <Intents/INCurrencyAmount.h>
#import <Intents/INDateComponentsRange.h>
#import <Intents/INImage.h>
#import <Intents/INPaymentMethod.h>
#import <Intents/INPaymentMethodType.h>
#import <Intents/INPerson.h>

// Common Resolution Results
#import <Intents/INBooleanResolutionResult.h>
#import <Intents/INCurrencyAmountResolutionResult.h>
#import <Intents/INDateComponentsRangeResolutionResult.h>
#import <Intents/INDoubleResolutionResult.h>
#import <Intents/INIntegerResolutionResult.h>
#import <Intents/INPaymentMethodResolutionResult.h>
#import <Intents/INPersonResolutionResult.h>
#import <Intents/INPlacemarkResolutionResult.h>
#import <Intents/INStringResolutionResult.h>

// Calls Domain
#import <Intents/INSearchCallHistoryIntent.h>
#import <Intents/INSearchCallHistoryIntentResponse.h>
#import <Intents/INStartAudioCallIntent.h>
#import <Intents/INStartAudioCallIntentResponse.h>
#import <Intents/INStartVideoCallIntent.h>
#import <Intents/INStartVideoCallIntentResponse.h>

#import <Intents/INCallRecordType.h>
#import <Intents/INCallRecordTypeResolutionResult.h>
#import <Intents/INCallCapabilityOptions.h>
#import <Intents/INCallCapabilityOptionsResolutionResult.h>

// CarPlay & Radio Domains
#import <Intents/INSetAudioSourceInCarIntent.h>
#import <Intents/INSetAudioSourceInCarIntentResponse.h>
#import <Intents/INSetClimateSettingsInCarIntent.h>
#import <Intents/INSetClimateSettingsInCarIntentResponse.h>
#import <Intents/INSetDefrosterSettingsInCarIntent.h>
#import <Intents/INSetDefrosterSettingsInCarIntentResponse.h>
#import <Intents/INSetSeatTemperatureInCarIntent.h>
#import <Intents/INSetSeatTemperatureInCarIntentResponse.h>
#import <Intents/INSetRadioStationIntent.h>
#import <Intents/INSetRadioStationIntentResponse.h>

#import <Intents/INCarAudioSource.h>
#import <Intents/INCarAudioSourceResolutionResult.h>
#import <Intents/INCarAirCirculationMode.h>
#import <Intents/INCarAirCirculationModeResolutionResult.h>
#import <Intents/INCarDefroster.h>
#import <Intents/INCarDefrosterResolutionResult.h>
#import <Intents/INCarSeat.h>
#import <Intents/INCarSeatResolutionResult.h>
#import <Intents/INRadioType.h>
#import <Intents/INRadioTypeResolutionResult.h>
#import <Intents/INRelativeReference.h>
#import <Intents/INRelativeReferenceResolutionResult.h>
#import <Intents/INRelativeSetting.h>
#import <Intents/INRelativeSettingResolutionResult.h>
#import <Intents/INTemperatureMode.h>
#import <Intents/INTemperatureModeResolutionResult.h>
#import <Intents/INTemperatureUnit.h>
#import <Intents/INTemperatureUnitResolutionResult.h>

// Messages Domain
#import <Intents/INSearchForMessagesIntent.h>
#import <Intents/INSearchForMessagesIntentResponse.h>
#import <Intents/INSendMessageIntent.h>
#import <Intents/INSendMessageIntentResponse.h>
#import <Intents/INSetMessageAttributeIntent.h>
#import <Intents/INSetMessageAttributeIntentResponse.h>

#import <Intents/INMessage.h>
#import <Intents/INMessageAttribute.h>
#import <Intents/INMessageAttributeResolutionResult.h>
#import <Intents/INMessageAttributeOptions.h>
#import <Intents/INMessageAttributeOptionsResolutionResult.h>
#import <Intents/INMessageService.h>

// Payments Domain
#import <Intents/INSendPaymentIntent.h>
#import <Intents/INSendPaymentIntentResponse.h>
#import <Intents/INRequestPaymentIntent.h>
#import <Intents/INRequestPaymentIntentResponse.h>

#import <Intents/INPaymentRecord.h>
#import <Intents/INPaymentStatus.h>

// Photos Domain
#import <Intents/INSearchForPhotosIntent.h>
#import <Intents/INSearchForPhotosIntentResponse.h>
#import <Intents/INStartPhotoPlaybackIntent.h>
#import <Intents/INStartPhotoPlaybackIntentResponse.h>

#import <Intents/INPhotoAttributeOptions.h>
#import <Intents/INPhotoAttributeOptionsResolutionResult.h>

// Ridesharing Domain
#import <Intents/INListRideOptionsIntent.h>
#import <Intents/INListRideOptionsIntentResponse.h>
#import <Intents/INRequestRideIntent.h>
#import <Intents/INRequestRideIntentResponse.h>
#import <Intents/INGetRideStatusIntent.h>
#import <Intents/INGetRideStatusIntentResponse.h>

#import <Intents/INPriceRange.h>
#import <Intents/INRideOption.h>
#import <Intents/INRideStatus.h>
#import <Intents/INRidePhase.h>
#import <Intents/INRideDriver.h>
#import <Intents/INRideVehicle.h>
#import <Intents/INRideFareLineItem.h>
#import <Intents/INRidePartySizeOption.h>

// Workouts Domain
#import <Intents/INStartWorkoutIntent.h>
#import <Intents/INStartWorkoutIntentResponse.h>
#import <Intents/INPauseWorkoutIntent.h>
#import <Intents/INPauseWorkoutIntentResponse.h>
#import <Intents/INEndWorkoutIntent.h>
#import <Intents/INEndWorkoutIntentResponse.h>
#import <Intents/INCancelWorkoutIntent.h>
#import <Intents/INCancelWorkoutIntentResponse.h>
#import <Intents/INResumeWorkoutIntent.h>
#import <Intents/INResumeWorkoutIntentResponse.h>

#import <Intents/INWorkoutGoalUnitType.h>
#import <Intents/INWorkoutGoalUnitTypeResolutionResult.h>
#import <Intents/INWorkoutLocationType.h>
#import <Intents/INWorkoutLocationTypeResolutionResult.h>

// Restaurant Booking
#import <Intents/INIntentRestaurantReservation.h>

// User Vocabulary
#import <Intents/INVocabulary.h>

// Utilities
#import <Intents/INSiriAuthorizationStatus.h>
#import <Intents/INPreferences.h>
#import <Intents/CLPlacemark+IntentsAdditions.h>
#import <Intents/NSUserActivity+IntentsAdditions.h>

//
//  IntentsUI.h
//  IntentsUI
//
//  Copyright © 2016 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for IntentsUI.
FOUNDATION_EXPORT double IntentsUIVersionNumber;

//! Project version string for IntentsUI.
FOUNDATION_EXPORT const unsigned char IntentsUIVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <IntentsUI/PublicHeader.h>
#import <IntentsUI/INImage+IntentsUI.h>
#import <IntentsUI/INUIHostedViewControlling.h>
#import <IntentsUI/INUIHostedViewSiriProviding.h>

//
//  VideoSubscriberAccount.h
//  VideoSubscriberAccount
//
//  Copyright © 2016 Apple Inc. All rights reserved.
//

#import <VideoSubscriberAccount/VideoSubscriberAccountDefines.h>
#import <VideoSubscriberAccount/VideoSubscriberAccountErrors.h>
#import <VideoSubscriberAccount/VSAccountManager.h>
#import <VideoSubscriberAccount/VSAccountManagerResult.h>
#import <VideoSubscriberAccount/VSAccountMetadata.h>
#import <VideoSubscriberAccount/VSAccountMetadataRequest.h>

三.苹果官方文档

iOS10新增框架
iOS10功能简介

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 220,492评论 6 513
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 94,048评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 166,927评论 0 358
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,293评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,309评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 52,024评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,638评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,546评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 46,073评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,188评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,321评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,998评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,678评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,186评论 0 23
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,303评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,663评论 3 375
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,330评论 2 358

推荐阅读更多精彩内容