Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dismiss() not work sometimes #59

Open
Project112224 opened this issue Dec 15, 2021 · 0 comments
Open

dismiss() not work sometimes #59

Project112224 opened this issue Dec 15, 2021 · 0 comments

Comments

@Project112224
Copy link

Project112224 commented Dec 15, 2021

Repeat operation present and dismiss (View Controller button),but dismiss sometimes not work,touch other element can't any action,

with example project
in DemoViewController.swift / class ViewController / viewDidLoad() add code

let button = UIButton(frame: CGRect(x: 0, y: 0, width: 50, height: 50) )
button.setTitle("tttt", for: .normal)
button.addTarget(self, action: #selector(self.tttt), for: .touchUpInside)
self.view.addSubview(button)

and function

@objc func tttt() {
    self.dismiss(animated: true, completion: nil)
}

console only show

Will dismiss dismiss by nil
Did dismiss dismiss by nil
Will dismiss dismiss by nil

use ios 14.8.1,iphone SE

I missing something?
Any answer help me.
Thanks.

@Project112224 Project112224 changed the title dismiss() not work sometime dismiss() not work sometimes Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant