iOS Bluetooth CBCharacteristic UUID deprecated?

Looking at the header for CBCharacteristic sheds some light on this. There is no more UUID property in the class, but CBCharacteristic is now a subclass of CBAttribute, which does have the UUID property. And this (new) parent class is marked as being available starting in iOS 8.

This can explain why the UUID member has a strikethrough, but no "deprecated" warning: you can still get the UUID, but it is inherited rather than belonging to CBAttribute directly.


UUID turned into an inherited attribute from iOS8
Here is the evidence from Apple's document
CoreBluetooth Changes in IOS8 API diffs

CBAttribute.h (Added)

Added CBAttribute
Added CBAttribute.UUID

CBCharacteristic.h

Removed CBCharacteristic.UUID
Modified CBCharacteristic
Superclasses:
From NSObject To CBAttribute


And many other basic CoreBluetooth classes(who contains UUID) adopts this change
However, class reference of CBCharacteristic still says it inherits from NSObject.
So it is misguiding and developers can easily understand UUID as a deprecated attribute in iOS8

Tags:

Ios

Bluetooth