riyaz riyaz - 1 year ago 164
Objective-C Question

Finding watchOS version programmatically

I want to find the watchOS version of the Apple Watch which is paired with the iOS device.

The following code works for iOS devices, but I couldn't figure out a way to find the watchOS version:

[[UIDevice currentDevice].systemVersion]

And also, with iOS 9.3 and watchOS 2.2 we will be allowed to pair with more than one watches. So, is there any way I can get details of all paired watches programatically?

Answer Source

You can use the below code to get watch kit details

[[WKInterfaceDevice currentDevice] systemVersion]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download