---
title: pointerStyleProvider
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/pointerstyleprovider-1d4d2
---

# pointerStyleProvider

A block that returns the pointer style to use when the pointer hovers over the button.

## Declaration

```occ
@property (nonatomic, copy, readwrite, nullable) UIButtonPointerStyleProvider pointerStyleProvider;
```

## Discussion

Discussion To change the appearance of the pointer when it hovers over the button, create a UIButtonPointerStyleProvider block that returns a UIPointerStyle describing the pointer shape and content effect. Then assign the closure to pointerStyleProvider. For more information, see Enhancing your iPad app with pointer interactions.

## See Also

### Supporting pointer interactions

- [isPointerInteractionEnabled](uikit/uibutton/ispointerinteractionenabled.md)
- [isHovered](uikit/uibutton/ishovered.md)
- [UIButtonPointerStyleProvider](uikit/uibuttonpointerstyleprovider.md)
