Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

set right bar button item swift

navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(addTapped))
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Add", style: .plain, target: self, action: #selector(addTapped))
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #set #bar #button #item #swift
ADD COMMENT
Topic
Name
9+8 =