Skip to content

Instantly share code, notes, and snippets.

@tdtsh
Created January 17, 2016 02:40
Show Gist options
  • Save tdtsh/8a2ea523f228a6108d73 to your computer and use it in GitHub Desktop.
Save tdtsh/8a2ea523f228a6108d73 to your computer and use it in GitHub Desktop.
Swift2 NavigationController で画面遷移
class MasterViewController: UITableViewController {
...
func doCamera(sender: AnyObject) {
let cameraViewController = CameraViewController()
self.navigationController?.pushViewController(cameraViewController, animated: true)
}
}
</code>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment