---
title: defaultCountryCode()
framework: Address Book
role: symbol
role_heading: Instance Method
platforms: [macOS 10.3+]
path: addressbook/abaddressbook-swift.class/defaultcountrycode()
---

# defaultCountryCode()

Returns the default country code for records with unspecified country codes.

## Declaration

```swift
func defaultCountryCode() -> String!
```

## Return Value

Return Value The default country code.

## Discussion

Discussion This value returned is set by the user in the Address Book application’s general preference. The supported country codes are listed in ABPerson.

## See Also

### Retrieving Default Values

- [defaultNameOrdering()](addressbook/abaddressbook-swift.class/defaultnameordering().md)
