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

not able to do button programmatically #27

Open
JorgeAntonio512 opened this issue Dec 3, 2021 · 0 comments
Open

not able to do button programmatically #27

JorgeAntonio512 opened this issue Dec 3, 2021 · 0 comments

Comments

@JorgeAntonio512
Copy link

` let myFirstButton = PMSuperButton.self

    myFirstButton.setTitle("✸", for: .normal)
        myFirstButton.setTitleColor(.blue, for: .normal)
        myFirstButton.frame = CGRect(x: 15, y: -50, width: 300, height: 500)
        myFirstButton.addTarget(self, action: #selector(pressed), for: .touchUpInside)

`

Here's my code, it's probably pretty nubby. Just trying to find a way to programmtically add the button and edit it with your creation.

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