Skip to content

Problem with button if title not setted #9

@kirillrybin

Description

@kirillrybin

Hello.
I have installed TOActionSheet via CocoaPods

With title (1 button + 1 Destructive button)

OK

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)

screen shot 2018-05-15 at 17 25 17

Without title (1 button + 1 Destructive button)

Not OK

let actionSheet = TOActionSheet(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)

screen shot 2018-05-15 at 17 24 02

Without title (2 buttons + 1 Destructive button)

OK

actionSheet.contentstyle = .default
actionSheet.addButton(withTitle: "Rename", tappedBlock: { print("rename") })
actionSheet.addButton(withTitle: "Move", tappedBlock: { print("move") })
actionSheet.addDestructiveButton(withTitle: "Delete", tappedBlock: { print("delete") })
actionSheet.show(from: sender, in: self.navigationController?.view)

screen shot 2018-05-15 at 17 32 36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions