I'm having trouble getting a view to actually display. I declare a variable of type CKCalenderView (which is linked from the storyboard). I then try to display it once the application loads. However, I'm still getting stuck on the splash screen. I'm new to Swift and iOS so I'm probably missing something obvious, but any help would be appreciated!
import UIKit
class ViewController: UIViewController, CKCalendarViewDelegate {
@IBOutlet weak var mainCalendar: CKCalendarView!
override func viewDidLoad() {
super.viewDidLoad()
mainCalendar.delegate = self;
mainCalendar.hidden = false;
mainCalendar.bringSubviewToFront(mainCalendar);
//self.view.addSubview(mainCalendar);
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
#import "CalendarKit.h" #import "CKCalendarView.h" #import "CKCalendarViewController.h" #import "NSCalendarCategories.h" #import "NSDate+Components.h" – Dan Aug 04 '15 at 21:12