Created
March 30, 2016 06:47
-
-
Save groue/3bc993ba3369618fa1933ad066396b97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PersonsViewController: UITableViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Configure the navigation bar | |
navigationItem.rightBarButtonItems = [ | |
UIBarButtonItem( | |
barButtonSystemItem: .Add, | |
target: self, | |
action: #selector(PersonsViewController.addPerson(_:))), | |
editButtonItem() | |
] | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment