참조 URL

http://www.raywenderlich.com/108415/watchkit-for-watchos-2

http://www.kristinathai.com/



1. openParentApplication 메소드가 사라지고 watch connectivity framework  데이터 통신

 sendMessage : 바로 전송

 transferData : 백그라운드에서 전송 가능, 앱이 런칭되면 데이터 받아옴

 WCSessionDelegate data 수신


2. NSURLSession  통해 data 다운로드 가능, Application Transfer Security(ATS) 이슈로 http  시작하는 링크는 제대로 동작하지 않음 ATS 옵션은 기본이므로 disable 하고 싶은 경우 해당 url  대해 설정을 해줘야 


Watch Connectivity framework는 iOS9 이상에서 사용 가능하다.


3. 애니메이션 가능한 항목

 alpha

 width and height

 vertical and horizontal alignment

○ background color

○ layout group insets

○ 글랜스와 노티는 지원하지 않음

○ 애니메이션 timing curve나 끝나는 시점을 캐치 수는 없음


4. 접근 가능한 하드웨어

○ Heart rate sensor : HealthKit

https://developer.apple.com/library/prerelease/watchos/documentation/HealthKit/Reference/HKWorkout_Class/index.html#//apple_ref/doc/uid/TP40014744-CH1-SW13

○ DigitalCrown : Picker

○ Taptic Engine : WKInterfaceDevice -> playHaptic: with WKHapticType

○ Accelerometer : CMMotionManager

○ microphone : Recording 기능, WKInterfaceController presentAudioRecordingControllerWithOutputURL:preset:maximumDuration:actionTitle:completion:  사용


5. New Interface Objects

○ WKInterfacePicker : 디지털크라운으로 스크롤해서 동작

  - text, images 또는 둘의 조합으로 가능

  - List, Stacked, Image Sequence 3가지 타입

○ Alert : presentAlertControllerWithTitle(_:message:preferredStyle:actions:), WKAlertAction


6. Custom Complications

https://developer.apple.com/library/prerelease/watchos/documentation/General/Conceptual/AppleWatch2TransitionGuide/DesigningaComplication.html#//apple_ref/doc/uid/TP40015234-CH11-SW1

+ Recent posts