title: Error showing a UIAlertView in swift
body: <p>Im trying to show a UIAlertView in my swift App</p>
  
  <pre><code>    alert = UIAlertView(title: "",
          message: "bla",
          delegate: self,
          cancelButtonTitle: "OK")
      alert!.show()
  </code></pre>
  
  <p>=> BAD_ACESS error in: 
      -[_UIAlertViewAlertControllerShim initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:] ()</p>
  
  <p>so I suspected self. I set it to nil</p>
  
  <pre><code>    alert = UIAlertView(title: "",
          message: "bla",
          delegate: nil,
          cancelButtonTitle: "OK")
      alert!.show()
  </code></pre>
  
  <p>=> ARM_DA_ALIGN error in: 
      -[_UIAlertViewAlertControllerShim initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:] ()</p>
  
  <hr>
  
  <p>the full code</p>
  
  <pre><code>import UIKit
  
  @UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate, UIAlertViewDelegate {
  
      @lazy var window = UIWindow(frame: UIScreen.mainScreen().bounds)
      @lazy var locationManager = CLLocationManager()
      var alert: UIAlertView? = nil
  
      func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -&gt; Bool {
          //setup dummy window
          self.window.backgroundColor = UIColor.whiteColor()
          self.window.rootViewController = UIViewController()
          self.window.makeKeyAndVisible()
  
          alert = UIAlertView(title: "",
              message: "bla",
              delegate: nil,
              cancelButtonTitle: "OK")
          alert!.show()
  
      return true
      }
  }
  </code></pre>
  
  <p>How to do it right? :)</p>