Guest User

Untitled

a guest
Oct 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. @IBAction func buttonClick(sender: AnyObject) {
  2.  
  3. let calendarVC = kConstantObj.SetIntialMainViewController("CalendarViewController")
  4. self.window?.rootViewController = calendarVC
  5. self.window?.makeKeyAndVisible()
  6. }
  7.  
  8. if sender == mounthButton {
  9. calendarVC.presentationMode(.MonthView)
  10.  
  11. } else {
  12.  
  13. func presentationMode() -> CalendarMode {
  14. return CalendarMode.MonthView
  15. }
Add Comment
Please, Sign In to add comment