1

有谁知道如何解决这个问题?

这是一个只有这段代码的新项目文件,我尝试构建它。

来自:http ://cocoadocs.org/docsets/CalendarKit/0.1.7/

图像豆荚红色:

在此处输入图像描述

import UIKit
import CalendarKit
class ViewController: UIViewController, DayViewDelegate, EventDataSource {

var calendario: DayView!

override func viewDidLoad() {
    super.viewDidLoad()

    calendario = DayView(frame: self.view.frame)
    calendario.delegate = self
    calendario.dataSource = self
    self.view.addSubview(calendario)
    // Do any additional setup after loading the view, typically from a nib.
}


func dayViewDidSelectEventView(_ eventView: EventView) {

}

func dayViewDidLongPressEventView(_ eventView: EventView) {

}

func dayViewDidLongPressTimelineAtHour(_ hour: Int) {

}

func dayView(dayView: DayView, willMoveTo date: Date) {

}

func dayView(dayView: DayView, didMoveTo date: Date) {

}

func eventsForDate(_ date: Date) -> [EventDescriptor] {
    return []
}

}
4

0 回答 0