import
UIKit
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
var
window:
UIWindow
?
func
application(application:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions: [
NSObject
:
AnyObject
]?)
->
Bool
{
let
settings
=
UIUserNotificationSettings
(forTypes:
[.
Alert
,
.
Badge
,
.
Sound
],
categories:
nil
)
application.registerUserNotificationSettings(settings)
return
true
}
func
applicationWillResignActive(application:
UIApplication
)
{
}
func
applicationDidEnterBackground(application:
UIApplication
)
{
}
func
applicationWillEnterForeground(application:
UIApplication
)
{
}
func
applicationDidBecomeActive(application:
UIApplication
)
{
}
请发表评论