//
//  ViewController.swift
//  ActionableNotifications
//
//  Created by Jeff Kelley on 4/26/15.
//  Copyright (c) 2015 Pragmatic Bookshelf. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBAction func sendNotificationButtonPressed(sender: UIButton) {
        let notification = UILocalNotification()
        notification.fireDate = NSDate().dateByAddingTimeInterval(5.0)
        
        notification.alertBody = "Jane has invited you to Launch Party!"
        notification.category = "Invitation"
        
        UIApplication.sharedApplication().scheduleLocalNotification(notification)
    }
    
}
