title: Presenting UIAlertController from UITableViewCell
body: <p>I am trying to add alerts to a custom <code>UITableViewCell</code> to present an <code>UIAlertView</code> I need to call presentViewController from <code>UIViewController</code>.  However, I am unaware of how to gain access to the current <code>UIViewController</code> instance from the <code>UITableViewCell</code> class.  The below code is my attempt to do this with an extension.  </p>
  
  <p>I get this error </p>
  
  <blockquote>
    <p>Expression resolved to unused function.</p>
  </blockquote>
  
  <pre><code>extension UIViewController
  {
  
      class func alertReminden(timeInterval: Int)
      {
          var refreshAlert = UIAlertController(title: "Refresh", message: "All data will be lost.", preferredStyle: UIAlertControllerStyle.Alert)
  
          refreshAlert.addAction(UIAlertAction(title: "Ok", style: .Default, handler: { (action: UIAlertAction!) in
              Alarm.createReminder("Catch the Bus",
                  timeInterval: NSDate(timeIntervalSinceNow: Double(timeInterval * 60)))
          }))
  
          refreshAlert.addAction(UIAlertAction(title: "Cancel", style: .Cancel, handler: { (action: UIAlertAction!) in
              println("Handle Cancel Logic here")
          }))
  
          UIViewController.presentViewController(refreshAlert)
  
  
      }
  }
  
  class CustomRouteViewCell: UITableViewCell {
  </code></pre>