热门问题
时间线
聊天
视角
WatchKit
来自维基百科,自由的百科全书
Remove ads
WatchKit 是蘋果公司為Apple Watch應用開發提供的軟體框架,基於Swift和Objective-C語言,需通過Xcode編譯實現,其架構設計與iOS應用開發類似。[1]
歷史
2014年隨iOS 8.2測試版發布[2],早於Apple Watch正式上市一年。2015年蘋果在多個城市設立保密實驗室,開發者需在遮蔽手機網路攝影機的環境中進行應用測試。[3]
技術特性
初期版本要求應用主體在iPhone執行,2015年watchOS 2.0開始支援原生應用開發[5]
核心組件
- WKInterfaceController
- WKUserNotificationInterfaceController
- WKExtension
- WKAlertAction
- WKInterfaceButton
- WKInterfaceMap
- WKInterfaceTable
- WKInterfaceSlider
- WKAudioFilePlayer
- WKInterfaceMovie
- WKImageAnimatable
開發工具
需配合Xcode 6.2+版本使用,提供:
- 介面構建器(Storyboard支援)
- 手錶模擬器
- 效能分析工具
影響與演進
2016年被WatchOS SDK逐步取代,但其設計理念影響了後續SwiftUI對穿戴裝置的支援方案。
參考
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads