---
title: "peoplePickerNavigationControllerDidCancel(_:)"
framework: Address Book UI
role: symbol
role_heading: Instance Method
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 13.1+]
path: "addressbookui/abpeoplepickernavigationcontrollerdelegate/peoplepickernavigationcontrollerdidcancel(_:)"
---

# peoplePickerNavigationControllerDidCancel(_:)

Sent when the user taps Cancel.

## Declaration

```swift
optional func peoplePickerNavigationControllerDidCancel(_ peoplePicker: ABPeoplePickerNavigationController)
```

## Parameters

- `peoplePicker`: The people-picker navigation controller with which the user interacted.

## Discussion

Discussion If the delegate does not implement this method, the people picker will dismiss itself when the user taps cancel. Special Considerations Prior to iOS 8, the delegate was responsible for dismissing the people picker and this method was required.

## See Also

### Responding to User Events

- [peoplePickerNavigationController(_:shouldContinueAfterSelectingPerson:)](addressbookui/abpeoplepickernavigationcontrollerdelegate/peoplepickernavigationcontroller(_:shouldcontinueafterselectingperson:).md)
- [peoplePickerNavigationController(_:shouldContinueAfterSelectingPerson:property:identifier:)](addressbookui/abpeoplepickernavigationcontrollerdelegate/peoplepickernavigationcontroller(_:shouldcontinueafterselectingperson:property:identifier:).md)
- [peoplePickerNavigationController(_:didSelectPerson:)](addressbookui/abpeoplepickernavigationcontrollerdelegate/peoplepickernavigationcontroller(_:didselectperson:).md)
- [peoplePickerNavigationController(_:didSelectPerson:property:identifier:)](addressbookui/abpeoplepickernavigationcontrollerdelegate/peoplepickernavigationcontroller(_:didselectperson:property:identifier:).md)
