---
title: hasUnsavedChanges()
framework: addressbook
role: symbol
role_heading: Instance Method
path: addressbook/abaddressbook/hasunsavedchanges()
---

# hasUnsavedChanges()

Indicates whether an address book has changes that have not been saved to the Address Book database.

## Declaration

```swift
func hasUnsavedChanges() -> Bool
```

## Return Value

Return Value true if there are unsaved changes; otherwise, false.

## Discussion

Discussion The unsaved changes flag is set automatically whenever changes are made.

## See Also

### Saving and Detecting Changes

- [save()](addressbook/abaddressbook/save().md)
- [saveAndReturnError()](addressbook/abaddressbook/saveandreturnerror().md)
