Code examples for new features of watchOS 2.
- Xcode 7
- iOS 9 and watchOS 2
- Change the "Team" setting on [General] for each target.
- Enable HealthKit for the parent app and WatchKit extension target.
- Enable App Groups for the Watch app and WatchKit extension target.
- Edit "AudioRecAndPlayInterfaceController" with your group identifier.
- Build & Run with Xcode 7
Animate width/height, alpha and alignments.
Insert and remove animations for WKInterfaceTable.
WKInterfacePicker styles catalog.
Access to the Taptic engine using playHaptic
method.
Record and play audio.
Coordinated Animations with WKInterfacePicker and Digital Crown.
Draw Paths (Updated by hoppenichu)
Draw paths with Core Graphics.
Gradations (Updated by hoppenichu)
Draw gradations with Core Graphics.
Heart Rate (Created by kitasuke)
Access to Heart Rate data using HealthKit.
Access to Accelerometer data using CoreMotion.
Access to Gyroscope data using CoreMotion.
These APIs are available, however CMMotionManager always returns false
for gyroAvailable
. So actually it's not available for now.
Access to DeviceMotion data using CoreMotion.
These APIs are available, however CMMotionManager always returns false
for deviceMotionAvailable
. So actually it's not available for now.
Counting steps demo using CMPedometer.
Present an alert or action sheet.
Sending message to phone and receiving from phone demo with WatchConnectivity.
Play an audio file with WKAudioFilePlayer.
Need to pair a Bluetooth headset on your Apple Watch.
Open Tel or SMS app using openSystemURL: method.
Network Access (Created by KAMEDAkyosuke)
Get an image data from network using NSURLSession.
- Open System URL
- Phone doesn't launch...
- It's based on the Apple's document.
sms:
works with same way. I have no idea why it doesn't work!
You can check the examples for iOS 9 new features on iOS-9-Sampler!!
Shuichi Tsutsumi
iOS freelancer in Japan. Welcome works from abroad!
- PAST WORKS: My Profile Summary
- PROFILES: LinkedIn
- BLOGS: English / Japanese
- CONTACTS: Twitter / Facebook
The icon is designed by Okazu.