After mutating Swift1.2 to Swift2 have an error... have no idea about how to fix it, smb tried this in Swift2?
func application(application: UIApplication, 
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) ->        Bool {
        let notificationType = [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound]
        let settings = UIUserNotificationSettings(forTypes: notificationType, categories: nil)
        application.registerUserNotificationSettings(settings)
        return true
            }
EDIT:
Error: "Cannot find initialiser for type 'UIUserNotificationSettings' that accept an argument list of type '(forTypes:[UIUserNotifivati..."
                        
Simply change this part from your code
INTO: