Saeid S Saeid S - 2 years ago 94
iOS Question

swift 3-Xcode How to minimize my iOS application using button?

swift 3-Xcode project.
How to minimize and go to home screen, my iOS application using button?

Answer Source

Inside the IBAction of your button add this

UIControl().sendAction(#selector(URLSessionTask.suspend), to: UIApplication.shared, for: nil)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download