IOS 退出App

时间:2014-09-04 09:38:27   收藏:0   阅读:343
 UIApplication *app = [UIApplication sharedApplication];
 [app performSelector:@selector(suspend)];
 //wait 2 seconds while app is going background
 [NSThread sleepForTimeInterval:2.0];
 //exit app when app is in background
 NSLog(@"exit(0)");
 exit(0);

 

原文:http://www.cnblogs.com/joesen/p/3955350.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!