<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarButtonItem/init(image:landscapeImagePhone:style:target:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarButtonItem(im)initWithImage:landscapeImagePhone:style:target:action:"
  },
  "title" : "init(image:landscapeImagePhone:style:target:action:)"
}
-->

# init(image:landscapeImagePhone:style:target:action:)

Creates an item using the specified images, style, target, and action.

```
convenience init(image: UIImage?, landscapeImagePhone: UIImage?, style: UIBarButtonItem.Style, target: Any?, action: Selector?)
```

## Parameters

`image`

The item’s image. If `nil`, an image doesn’t appear.

`landscapeImagePhone`

The image to use for the item in landscape bars in the [`UIUserInterfaceIdiom.phone`](/documentation/UIKit/UIUserInterfaceIdiom/phone) idiom.

`style`

The style of the item. For possible values, see [`UIBarButtonItem.Style`](/documentation/UIKit/UIBarButtonItem/Style-swift.enum).

`target`

The object that receives the `action` message.

`action`

The action to send to `target` when a person selects this item.

## Return Value

A newly initialized [`UIBarButtonItem`](/documentation/UIKit/UIBarButtonItem).

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