Home Ask Login Register

Developers Planet

Your answer is one click away!

jblb2424 February 2016

Setting up CVCalendar via Cocoapods: Views Aren't Showing

I've been trying to set up the CocoaPods CVCalendar for my app, but after integrating it into my Xcode project, the content fails to show through the UIViews. Essentially, whenever I connect the views to the CVCalendarView and CVCalendarMenuView variables, the views simply do not show. Here's the ViewController code I have so far, and help would be greatly appreciated!

import UIKit
import CVCalendar

class ViewController: UIViewController, CVCalendarViewDelegate, CVCalendarMenuViewDelegate {

    @IBOutlet weak var menuView: CVCalendarMenuView!

    @IBOutlet weak var calendarView: CVCalendarView!

    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.

    override func didReceiveMemoryWarning() {
        // Dispose of any resources that can be recreated.

    override func viewDidLayoutSubviews() {

    func presentationMode() -> CalendarMode {
        return .MonthView

    func firstWeekday() -> Weekday {
        return .Sunday



Prabhu.Somasundaram February 2016

If for some reason you'd like to setup CVCalendar manually you have to do the following steps.

Refer here

Phil.Ng March 2016

  • Your ViewController class is the class in the storyboard?
  • Did you hook up the delegates? Delegate setup
    • You're delegating the rendering to your ViewController/
    • You need to drag to the yellow view controller nub.

Post Status

Asked in February 2016
Viewed 1,487 times
Voted 7
Answered 2 times


Leave an answer

Quote of the day: live life