Skip to content

issue with calendar.setScope(.Month, animated: true) #237

@dantetemp

Description

@dantetemp

in swift example i created two buttons: week, month with corresponding actions.

    @IBAction func monthView(sender: UIButton) {
        self.calendar.setScope(.Month, animated: true)
    }

    @IBAction func weekView(sender: UIButton) {
        self.calendar.setScope(.Week, animated: true)
    }

setScope for week works fine, when i trigger setScope for month i get this error

[SwiftExample.ViewController week:]: unrecognized selector sent to instance 0x125d2cae0
2016-03-25 18:47:23.761 SwiftExample[2069:830336] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SwiftExample.ViewController week:]: unrecognized selector sent to instance 0x125d2cae0'
*** First throw call stack:
(0x183b56e38 0x1831bbf80 0x183b5dccc 0x183b5ac74 0x183a58d1c 0x188cd8ad0 0x188cd8a4c 0x188cc0740 0x188cd833c 0x188cd7f6c 0x188cd0b08 0x188ca0f4c 0x188c9f528 0x183b0d124 0x183b0cbb8 0x183b0a8b8 0x183a34d10 0x18531c088 0x188d09f70 0x10004d7e0 0x1835d28b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

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