<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactsUI",
  "identifier" : "/documentation/ContactsUI/CNContactPickerDelegate/contactPickerDidCancel(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts UI"
    ],
    "preciseIdentifier" : "c:objc(pl)CNContactPickerDelegate(im)contactPickerDidCancel:"
  },
  "title" : "contactPickerDidCancel(_:)"
}
-->

# contactPickerDidCancel(_:)

In iOS, called when the user taps Cancel.

```
optional func contactPickerDidCancel(_ picker: CNContactPickerViewController)
```

## Parameters

`picker`

The contact picker in which the selection was made.

## Discussion

The picker is dismissed automatically after a contact or property is picked.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)