title: How to go to another view controller when button is pressed in swift 3
body: <p>This code is in OverlayView.swift</p>
  
  <pre><code>protocol OverlayViewControllerDelegate {
  func didCancel(overlayView: OverlayView)
  func didShoot(overlayView: OverlayView)
  }
  
  class OverlayView: UIView {
  
  @IBOutlet weak var cameraLabel: UILabel!
  
  var delegate: OverlayViewControllerDelegate! = nil
  
  
  @IBAction func cancel(_ sender: AnyObject) {
      cameraLabel.text = "I want to exit"
      delegate.didCancel(overlayView: self)
  
  
  }
  </code></pre>
  
  <p>All i want to do is anytime the cancel button is clicked. Is make the the current page transform the page of view controller. I want to go from page a to page b. </p>