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