Creating UIBarButtonItem iOS

//Swiftlet barButtonItem = UIBarButtonItem(title: "Greetings!", style: .Plain, target: self, action: #selector(barButtonTapped))
self.navigationItem.rightBarButtonItem = barButtonItem//Objective-CUIBarButtonItem *barButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Greetings!"
style:UIBarButtonItemStylePlain target:self action:@selector(barButtonTaped)];
self.navigationItem.rightBarButtonItem = barButtonItem;

--

--

--

iOS Developer, Triple graduated, Passionate, Love workout, blogger

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

UITableView Self-sizing cells (Row height automatic calculation using…

13 Best iOS Development Resources

Best iOS Development Resources

Clean Architecture and MVVM on iOS

How to Remove the iOS Push Notification Error

What’s New in Swift From WWDC 2020

How to set the custom border color of UIView programmatically?

Shake a View iOS

iOS 13 UISegmentedControl: 3 important changes

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mr.Javed Multani

Mr.Javed Multani

iOS Developer, Triple graduated, Passionate, Love workout, blogger

More from Medium

Basic Operators in Swift

Swift Concurrency Task Management

Swift | Stored and Lazy Properties

Static and Class Modifiers in Swift, iOS