iOS10新特性

来源:互联网 发布:python 日期和时间 编辑:程序博客网 时间:2024/05/02 02:28

      WWDC2016之后,苹果4大平台系统的展示中发生了很多的变化,当然重点还是在我们伟大的iOS上,通过试用iOS 10 beta版,除了强大的siri,最为直接的能感受到的是iMessage,除了一般的文字,图片,表情,语音外还支持动画特效,动态涂鸦等!

     通过WWDC2016和官方文档What’s New in iOS10,我们一起看看iOS10给开发者带来了些什么样的变化


Swift 3.0

  • PAI的改变高度的增强了可读性和易用性

举个栗子:

<span style="font-size:18px;">override func numberOfSectionsInTableView(tableView: UITableView) -> Intoverride func numberOfSections(in tableView: UITableView) -> Int</span>

或者

<span style="font-size:18px;">NSTimer.scheduledTimerWithTimeInterval(0.35, target: self, selector: #selector(reset), userInfo: nil, repeats: true)Timer.scheduledTimer(timeInterval: 0.35, target: self, selector: #selector(reset), userInfo: nil, repeats: true)</span>

省却了不必要的单词, 比如这样:

<span style="font-size:18px;">let blue = UIColor.blueColor()let blue = UIColor.blue</span>

或者这样的

<span style="font-size:18px;">UIDevice.currentDevice()UIDevice.current</span>

详情点击这里:https://swift.org/documentation/api-design-guidelines/


SiriKit

通过官方文档我们可以看到SiriKit框架支持的六类服务分别是:

  • 语音和视频通话
  • 发送消息
  • 收款或者付款
  • 图片搜索
  • 管理锻炼
  • 行程预约

iMessage Apps

iMessage App是一种全新的应用扩展,载体是iOS系统的Message应用,通过iMessage App,用户可以发送更加丰富的消息内容,享受更具交互性的会话体验。我们来看看它都有什么新鲜玩意:

新增三种类型

  • Stickers
  • Interactive Messages
  • 可以发送图片,音视频,文本,链接等等

Messages App Store

  • 显示iMessage App;
  • 为未安装应用的用户提供安装途径(Inline App Attribution);
  • 提供iap,Apple Pay和访问相机功能。
0 0