ios - How to get the Apple Watch hardware identifier? -
this page http://theiphonewiki.com/wiki/models seems suggest identifiers new apple watches "watch 1,1" , "watch 1,2"
does know how identifier in code connected watch? [wkinterfacedevice currentdevice] seems give me screen bounds.
there no watchkit method obtain hardware identifier. distinguish between 38mm , 42mm watches, apple employee in dev forums recommended using screenbounds property on wkinterfacedevice. this:
if ([wkinterfacedevice currentdevice].screenbounds.size.width == 136.0f) { // 38mm } else { // 42mm }
Comments
Post a Comment