<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreBluetooth",
  "identifier" : "/documentation/CoreBluetooth/CBUUID/init(nsuuid:)-2amob",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)CBUUID(cm)UUIDWithNSUUID:"
  },
  "title" : "init(nsuuid:)"
}
-->

# init(nsuuid:)

Creates a Core Bluetooth UUID object from a Foundation UUID object.

```
init(nsuuid theUUID: UUID)
```

## Parameters

`theUUID`

A UUID represented by an <doc://com.apple.documentation/documentation/Foundation/NSUUID> object.

## Return Value

A new [`CBUUID`](/documentation/CoreBluetooth/CBUUID) object for the specified UUID.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)