---
title: CFLocaleCopyISOCountryCodes()
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cflocalecopyisocountrycodes()
---

# CFLocaleCopyISOCountryCodes()

Returns an array of CFString objects that represents all known legal ISO country codes.

## Declaration

```swift
func CFLocaleCopyISOCountryCodes() -> CFArray!
```

## Return Value

Return Value An array of CFString objects that represents all known legal ISO country codes. Ownership follows the The Create Rule.

## Discussion

Discussion Note: many of these will not have any supporting locale data in macOS.

## See Also

### Getting ISO Information

- [CFLocaleCopyISOLanguageCodes()](corefoundation/cflocalecopyisolanguagecodes().md)
- [CFLocaleCopyISOCurrencyCodes()](corefoundation/cflocalecopyisocurrencycodes().md)
- [CFLocaleCopyCommonISOCurrencyCodes()](corefoundation/cflocalecopycommonisocurrencycodes().md)
