riyaz riyaz - 2 months ago 11x
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?


You can use the below code to get watch kit details

[[WKInterfaceDevice currentDevice] systemVersion]