标签:animation gre har idt on() main nbsp pre 应用
func exitApplication() {
let app = UIApplication.sharedApplication().delegate as! AppDelegate
let window = app.window
dispatch_async(dispatch_get_main_queue(), {
UIView.animateWithDuration(0.5, animations: {
window!.alpha = 0
window?.frame = CGRectMake((window?.bounds.size.width)!/2.0, (window?.bounds.size.height)!/2.0, 0, 0)
}) { (finish) in
exit(0)
}
})
}
标签:animation gre har idt on() main nbsp pre 应用
原文地址:http://www.cnblogs.com/Walking-Jin/p/6592887.html