D
D
Dmitry Golovanov2017-11-13 22:25:59
iOS
Dmitry Golovanov, 2017-11-13 22:25:59

iOS popup window how to implement?

Good day!
Interested in how to implement a pop-up window in the iOS SDK project.
The bottom line is that in my application on one of the ViewControllers there is a certain UIButton. It is necessary that by clicking on the UIButton a window pops up on top of my ViewController, so that it can then be minimized back with a swipe, or by pressing the return button.
Examples
1) TouchID verification in AppStore (iOS 11.x)
5a09f16239907442181021.png
2) Opening video page in YouTube App
5a09f16f1993a217717391.png
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Golovanov, 2017-11-14
@golovanovd

doublench21 @doublench21 by
Dmitry Golovanov, https://developer.apple.com/ios/human-interface-gu...
Written 53 minutes ago

https://gist.github.com/barbietunnie/e5547f3518043...
class MainViewController: UIViewController{
    override func viewDidLoad() {
           showModal()
    }
    func showModal() {
          let modalViewController = ModalViewController()
          modalViewController.modalPresentationStyle = .OverCurrentContext
          present(modalViewController, animated: true, completion: nil)
    }
}
class ModalViewController: UIViewController {
    override func viewDidLoad() {
        view.backgroundColor = UIColor.clear
        view.isOpaque = false
    }
}

A
Alexander Semchenko, 2017-11-14
@0xcffaedfe

https://www.cocoacontrols.com/controls/alertview
https://www.cocoacontrols.com/controls/bulletinboard
https://www.cocoacontrols.com/controls/biometricau...
And so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question