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

Button not rotating when tapped after setting background Image? #20

Open
gabhisekdev opened this issue Feb 29, 2016 · 0 comments
Open

Comments

@gabhisekdev
Copy link

I am using your frame work for implementing floating action button. I tried to use an image for the button by setting actionButton.setImage = "".*The problem now is the button is not rotating as it was earlier. Any idea??
*

    ```

let twitterImage = UIImage(named: "twitter_icon.png")!
let plusImage = UIImage(named: "googleplus_icon.png")!

    let twitter = ActionButtonItem(title: "Twitter", image: twitterImage)
    twitter.action = { item in print("Twitter...") }

    let google = ActionButtonItem(title: "Google Plus", image: plusImage)
    google.action = { item in print("Google Plus...") }

    actionButton = ActionButton(attachedToView: self.view, items: [twitter, google])
    actionButton.action = { button in button.toggleMenu() }
    actionButton.setImage(UIImage(named: "bottom-logo-icon.png")!, forState: .Normal)
    actionButton.backgroundColor = UIColor.clearColor()

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