TOActionSheet icon indicating copy to clipboard operation
TOActionSheet copied to clipboard

Wrong position of TOActionSheet view

Open kirillrybin opened this issue 7 years ago • 0 comments

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 avatar May 15 '18 14:05 kirillrybin