let suspendSelector = NSSelectorFromString("suspend")
if UIApplication.shared.responds(to: suspendSelector) {
UIApplication.shared.perform(suspendSelector)
} else {
exit(EXIT_SUCCESS)
}
let suspendSelector = NSSelectorFromString("suspend")
if UIApplication.shared.responds(to: suspendSelector) {
UIApplication.shared.perform(suspendSelector)
} else {
exit(EXIT_SUCCESS)
}
本文标题:iOS 关闭 App 方法
本文链接:https://www.haomeiwen.com/subject/bxcpkftx.html
网友评论