<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABPersonSetImageData(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABPersonSetImageData"
  },
  "title" : "ABPersonSetImageData(_:_:_:)"
}
-->

# ABPersonSetImageData(_:_:_:)

Sets the image for this person to the given data.

```
func ABPersonSetImageData(_ person: ABPersonRef!, _ imageData: CFData!) -> Bool
```

## Parameters

`person`

The person whose image data you wish to set.

`imageData`

The image data to use as the image for `person`.

## Return Value

`true` if successful, `false` otherwise.

## Discussion

---

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)