Skip to content

Instantly share code, notes, and snippets.

@groue
Created March 30, 2016 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groue/3bc993ba3369618fa1933ad066396b97 to your computer and use it in GitHub Desktop.
Save groue/3bc993ba3369618fa1933ad066396b97 to your computer and use it in GitHub Desktop.
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