---
title: "systemButton(with:target:action:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uibutton/systembutton(with:target:action:)"
---

# systemButton(with:target:action:)

Creates and returns a system type button with specified image, target, and action.

## Declaration

```swift
class func systemButton(with image: UIImage, target: Any?, action: Selector?) -> Self
```

## Parameters

- `image`: The image for a system button.
- `target`: The object that receives the action message.
- `action`: The action to send to target when this item is selected.

## Discussion

Discussion This method is a convenience constructor for creating a UIButtonTypeSystem type button objects with a specific target and action.
