<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABPerson/setImageData(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Address Book",
      "AddressBook"
    ],
    "preciseIdentifier" : "c:objc(cs)ABPerson(im)setImageData:"
  },
  "title" : "setImageData(_:)"
}
-->

# setImageData(_:)

Sets the image for this person to the given data.

```
func setImageData(_ data: Data!) -> Bool
```

## Parameters

`data`

The image to be set.

## Discussion

The `data` argument must be in a QuickTime-compatible format. Pass `nil` to specify that there is no image for this person.

---

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)