---
title: defaultCountryCode()
framework: addressbook
role: symbol
role_heading: Instance Method
path: addressbook/abaddressbook/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/defaultnameordering().md)
