IOS 开发中,我知道的两个退出程序的方法:
1.
exit(0);
2.
if([[UIApplication sharedApplication] respondsToSelector:@selector(terminateWithSuccess)]){
[[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];
}
时间: 2024-12-27 23:05:30
IOS 开发中,我知道的两个退出程序的方法:
1.
exit(0);
2.
if([[UIApplication sharedApplication] respondsToSelector:@selector(terminateWithSuccess)]){
[[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];
}