Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dantetemp opened this issue Mar 25, 2016 · 1 comment
Closed

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

dantetemp opened this issue Mar 25, 2016 · 1 comment

Comments

@dantetemp
Copy link

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)

@dantetemp
Copy link
Author

issue solved, my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant