关闭程序
-(void)close
{
[UIView animateWithDuration:1.0f animations:^{
self.view. window.alpha = 0;
self.view.window.frame = CGRectMake( self.view.window.bounds.size.width/2,self.view.window.bounds.size.height, 0, 0);
} completion:^(BOOL finished) {
exit(0);
}];
}