title: Swift Buttonaction Text Change
body: <p>Trying to make the text change when its pressed and shows different type of map (Hybrid, standard or satellite).
  But when i press the button i get error (well, not when i don't have the "textchange" code in it). So how do i make the text change when it knows its different type of map without getting this error and crashing the app...?</p>
  
  <p>i use this code</p>
  
  <pre><code>   @IBAction func mapType(sender: AnyObject) {
      if Mapview.mapType == MKMapType.Standard {
          Mapview.mapType = MKMapType.Satellite
          sender.setTitle("Satellite", forState: .Normal)
  
      } else {
          if Mapview.mapType == MKMapType.Satellite {
              Mapview.mapType = MKMapType.Hybrid
              sender.setTitle("Hybrid", forState: .Normal)
  
      } else {
              Mapview.mapType = MKMapType.Standard
              sender.setTitle("Standard", forState: .Normal)
      }
    }
  }
  </code></pre>