<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICellAccessoryCustomView",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICellAccessoryCustomView"
  },
  "title" : "UICellAccessoryCustomView"
}
-->

# UICellAccessoryCustomView

A custom cell accessory.

```
@interface UICellAccessoryCustomView : UICellAccessory
```

## Topics

### Creating Configuration Options

[`- (instancetype) initWithCustomView:(UIView *) customView placement:(UICellAccessoryPlacement) placement;`](/documentation/UIKit/UICellAccessoryCustomView/initWithCustomView:placement:)

Creates a custom accessory with the specified view and cell accessory placement.

[`- (instancetype) initWithCoder:(NSCoder *) coder;`](/documentation/UIKit/UICellAccessoryCustomView/initWithCoder:)

Creates a custom accessory from data in an unarchiver.

### Accessing Configuration Options

[`@property (nonatomic, strong, readonly) UIView * customView;`](/documentation/UIKit/UICellAccessoryCustomView/customView)

The custom view to display for the accessory.

[`@property (nonatomic, readonly) UICellAccessoryPlacement placement;`](/documentation/UIKit/UICellAccessoryCustomView/placement)

The placement for the accessory.

[`@property (nonatomic, copy, null_resettable) UICellAccessoryPosition position;`](/documentation/UIKit/UICellAccessoryCustomView/position)

The index position of the cell accessory in relation to the other accessories in the accessories array.

[`@property (nonatomic) BOOL maintainsFixedSize;`](/documentation/UIKit/UICellAccessoryCustomView/maintainsFixedSize)

A Boolean value that determines whether to preserve the frame size of the custom view.

## Relationships

### Inherits From

[`UICellAccessory-c.class`](/documentation/UIKit/UICellAccessory-c.class)

---

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)