1睬澡、制造一個(gè)崩潰(例如用戶不想更新時(shí)候)
1)abort();
2)exit(0);
2、優(yōu)雅的回到主界面(返回app后還是原來界面)
oc)
[[UIApplication sharedApplication] performSelector:@selector(suspend)];
swift)
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
1睬澡、制造一個(gè)崩潰(例如用戶不想更新時(shí)候)
1)abort();
2)exit(0);
2、優(yōu)雅的回到主界面(返回app后還是原來界面)
oc)
[[UIApplication sharedApplication] performSelector:@selector(suspend)];
swift)
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))