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

Wrong position of TOActionSheet view #8

Open
kirillrybin opened this issue May 15, 2018 · 0 comments
Open

Wrong position of TOActionSheet view #8

kirillrybin opened this issue May 15, 2018 · 0 comments

Comments

@kirillrybin
Copy link

kirillrybin commented May 15, 2018

Hello.
I have installed TOActionSheet via CocoaPods

Swift code

@IBAction func barButtonAction(_ sender: UIBarButtonItem) {
        let actionSheet = TOActionSheet(title: "Choose an action")!
        actionSheet.style = .light
        actionSheet.contentstyle = .default
         #actionSheet.addButton(withTitle: "Rename", tappedBlock: {
            print("rename")
        })
        actionSheet.addDestructiveButton(withTitle: "Delete", tappedBlock: {
            print("delete")
        })
        actionSheet.show(from: sender, in: self.navigationController?.view)
    }

Result

Bar Button Item is on the right side of navigation bar but actionsheet is on the left
screen shot 2018-05-15 at 17 02 24

@kirillrybin kirillrybin changed the title Wrong position of ActionSheet view Wrong position of TOActionSheet view May 15, 2018
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