方法1: AppDelegate里 - (void)applicationDidEnterBackground:(UIApplication *)application { } 在该函数里调用exit。 方法2:在plist文件里设置:在xcode4.2里找不到这个设置项了