title: Swift class with only class methods and a delegate?
body: <p>I want a class with all class methods.  I would like to use a delegate so my view controllers (conforming to the protocol)  can call <code>AlertFactory.passwordResetSucess()</code> and display the alert.  </p>
  
  <ol>
  <li><p>Is there a way to make this this work?  A way to use the delegate from this class?</p></li>
  <li><p>Is this bad practice?  Bad form?  Why?</p></li>
  <li><p>What's a good way to make this happen?  There will be other class methods used in several views.</p></li>
  </ol>
  
  <p>Thanks!</p>
  
  <pre><code>    protocol AlertFactoryDelegate 
      {
          func showAlert(alert: UIAlertController)
      }
  
      class AlertFactory: NSObject {
  
       let delegate: AlertFactoryDelegate!
  
       class func passwordResetSuccess() 
       {
           var alert = UIAlertController(title: "Success!", message: "Yay", preferredStyle: UIAlertControllerStyle.Alert)
           alert.addAction(UIAlertAction(title: "Continue", style: UIAlertActionStyle.Default, handler: nil))
           delegate.showAlert(alert)
       }
      }
  </code></pre>