---
title: "setImageData(_:)"
framework: addressbook
role: symbol
role_heading: Instance Method
path: "addressbook/abperson/setimagedata(_:)"
---

# setImageData(_:)

Sets the image for this person to the given data.

## Declaration

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

## Parameters

- `data`: The image to be set.

## Discussion

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

## See Also

### Managing Images

- [cancelLoadingImageData(forTag:)](addressbook/abperson/cancelloadingimagedata(fortag:).md)
- [beginLoadingImageData(for:)](addressbook/abperson/beginloadingimagedata(for:).md)
- [imageData()](addressbook/abperson/imagedata().md)
