<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPageControl/setIndicatorImage(_:forPage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPageControl(im)setIndicatorImage:forPage:"
  },
  "title" : "setIndicatorImage(_:forPage:)"
}
-->

# setIndicatorImage(_:forPage:)

Registers an override image for the indicator of the specified page.

```
func setIndicatorImage(_ image: UIImage?, forPage page: Int)
```

## Parameters

`image`

The image to use instead of the preferred image. Use `nil` to reset the image to [`preferredIndicatorImage`](/documentation/UIKit/UIPageControl/preferredIndicatorImage).

`page`

The index of the page. A value that’s greater than or equal to `0` and less than [`numberOfPages`](/documentation/UIKit/UIPageControl/numberOfPages).

## 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)