TOActionSheet
TOActionSheet copied to clipboard
Wrong position of TOActionSheet view
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
