---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.1
alternate:
  - https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMAMutableUserProfile.md
  - https://appmetrica.yandex.com/docs/ru/sdk/ios/analytics/objectivec/AMAMutableUserProfile.md
  - https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMAMutableUserProfile.md
  - href: https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMAMutableUserProfile.md
    type: text/markdown
    title: Markdown version
  - href: https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r22002143
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r22002143

# AMAMutableUserProfile 类

可修改的 [AMAUserProfile](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMAUserProfile.md) 类，用于存储用户资料。

用户资料是用户属性的集合。 用户个人资料显示在AppMetrica的用户个人资料报告中。

应将 `AMAMutableUserProfile` 类的实例传递到 AppMetrica服务器，使用 [reportUserProfile](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMAAppMetrica.md#method_reportUserProfile) 方法（[AMAAppMetrica](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMAAppMetrica.md) 类）。 使用 [AMAProfileAttribute](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMAProfileAttribute.md) 类的方法来创建用户属性。

## Instance methods {#instance_summary}

#|
|| -[应用：](#method_apply) | 更新用户资料的单个属性。 ||
|| -[applyFromArray:](#method_applyFromArray) | 更新用户资料的多个属性。 ||
|#

## Method descriptions {#method_detail}

### -apply: {#method_apply}

```objectivec translate=no
- (void)apply:(AMAUserProfileUpdate *)update
```

更新用户资料的单个属性。

**参数：**

#|
|| `更新` | The `AMAUserProfileUpdate` 类实例。 ||
|#

### -applyFromArray: {#method_applyFromArray}

```objectivec translate=no
- (void)applyFromArray:(NSArray<AMAUserProfileUpdate *>*)updatesArray
```

更新用户资料的多个属性。

**参数：**

#|
|| `updatesArray` | `AMAUserProfileUpdate` 实例数组。 ||
|#
