两行代码搞定
let toBackgroundControl = UIControl()
toBackgroundControl.sendAction(#selector(NSXPCConnection.suspend), to: UIApplication.shared, for: nil)
两行代码搞定
let toBackgroundControl = UIControl()
toBackgroundControl.sendAction(#selector(NSXPCConnection.suspend), to: UIApplication.shared, for: nil)