Skip to content

fatal error: Array index out of range on actionsheet on tap gesture #16

@kohdesmond

Description

@kohdesmond

I have an array of 5, cancelButtonTag is 6, hence fatal error: Array index out of range

// Handle ContainerView tap gesture
func handleContainerViewTapGesture(sender: AnyObject) {
// cancel action
let action = actions[cancelButtonTag] as! DOAlertAction
if (action.handler != nil) {
action.handler(action)
}
self.dismissViewControllerAnimated(true, completion: nil)
}

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