Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func buttonClick(sender: AnyObject) {
- let calendarVC = kConstantObj.SetIntialMainViewController("CalendarViewController")
- self.window?.rootViewController = calendarVC
- self.window?.makeKeyAndVisible()
- }
- if sender == mounthButton {
- calendarVC.presentationMode(.MonthView)
- } else {
- func presentationMode() -> CalendarMode {
- return CalendarMode.MonthView
- }
Add Comment
Please, Sign In to add comment