Configuring CVCalendar through Cocoapods: Impressions Not Displaying

I am trying to configure CocoaPods CVCalendar for my application, but after integrating it into my Xcode project, the content is not displayed through UIViews . Essentially, whenever I connect the views with the CVCalendarView and CVCalendarMenuView , the views just don't show up. Here is the ViewController code that I still have, and help would be ViewController appreciated!

 import UIKit import CVCalendar class ViewController: UIViewController, CVCalendarViewDelegate, CVCalendarMenuViewDelegate { @IBOutlet weak var menuView: CVCalendarMenuView! @IBOutlet weak var calendarView: CVCalendarView! override func viewDidLoad() { super.viewDidLoad() // 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. } override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() calendarView.commitCalendarViewUpdate() menuView.commitMenuViewUpdate() } func presentationMode() -> CalendarMode { return .MonthView } func firstWeekday() -> Weekday { return .Sunday } } 
+5
source share
2 answers
  • Is your ViewController class a class in the storyboard?
  • Have you connected delegates? Delegate Setup
    • You are delegating rendering to your ViewController /
    • You need to drag to the yellow controller of the controller.
+3
source

If for some reason you want to manually configure CVCalendar, you need to follow these steps.

See here

0
source

Source: https://habr.com/ru/post/1242576/


All Articles