let systemVersion = UIDevice.currentDevice().systemVersion
println("iOS\(systemVersion)")
if systemVersion == 9.0 {
}
, :
@available(iOS 10.0, *)
private func userNotificationCenter(center: UNUserNotificationCenter, willPresentNotification notification: UNNotification, withCompletionHandler completionHandler: (UNNotificationPresentationOptions) -> Void) {
logParklee.verbose("willPresentNotification")
}
if #available(iOS 10, *) {
} else {
}
guard #available(iOS 9, *) else {
return
}
@available(iOS 7, *)
func iOS7Work() {
// do stuff
if
iOS8Work()
}
}
@available(iOS 8, *)
func iOS8Work() {
// do stuff
if
iOS9Work()
}
}
@available(iOS 9, *)
func iOS9Work() {
// do stuff
}