Answers for "how to add two right bar button item xcode"

0

how to add two right bar button item xcode

override func viewDidLoad() {
  super.viewDidLoad()

  let editImage    = UIImage(named: "plus")!
  let searchImage  = UIImage(named: "search")!

  let editButton   = UIBarButtonItem(image: editImage,  style: .Plain, target: self, action: "didTapEditButton:")
  let searchButton = UIBarButtonItem(image: searchImage,  style: .Plain, target: self, action: "didTapSearchButton:")

  navigationItem.rightBarButtonItems = [editButton, searchButton]
}
Posted by: Guest on May-07-2020

Code answers related to "how to add two right bar button item xcode"

Code answers related to "Swift"

Browse Popular Code Answers by Language