---
title: "CFUUIDCreateString(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfuuidcreatestring(_:_:)"
---

# CFUUIDCreateString(_:_:)

Returns the string representation of a specified CFUUID object.

## Declaration

```swift
func CFUUIDCreateString(_ alloc: CFAllocator!, _ uuid: CFUUID!) -> CFString!
```

## Parameters

- `alloc`: The allocator to use to allocate memory for the new string. Pass NULL or doc://com.apple.corefoundation/documentation/CoreFoundation/kCFAllocatorDefault to use the current default allocator.
- `uuid`: The CFUUID object whose string representation to obtain.

## Return Value

Return Value The string representation of uuid. Ownership follows the The Create Rule.

## See Also

### Getting Information About CFUUID Objects

- [CFUUIDGetConstantUUIDWithBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)](corefoundation/cfuuidgetconstantuuidwithbytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:).md)
- [CFUUIDGetUUIDBytes(_:)](corefoundation/cfuuidgetuuidbytes(_:).md)
