<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/systemButton(with:target:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIButton(cm)systemButtonWithImage:target:action:"
  },
  "title" : "systemButton(with:target:action:)"
}
-->

# systemButton(with:target:action:)

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

```
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

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

---

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)