gpt4 book ai didi

swift - 在 Swift 项目中使用 DSLCalendar

转载 作者:行者123 更新时间:2023-11-30 10:18:34 25 4
gpt4 key购买 nike

我正在尝试在我的 swift 应用程序中使用 DSLCalendar。到目前为止,我已经成功创建了一个桥接 header 并导入了 header :

#import "DSLCalendarView/DSLCalendarView.h"

我已将 UIView 添加到 UIViewController 并将其自定义类设置为 DSLCalendarView。我也分配了代表。小编成功看课;然而,编译器提示定义。下面是代码,下面是错误。有什么想法吗?

import UIKit

class ViewController: UIViewController, DSLCalendarViewDelegate {

@IBOutlet weak var calendarView: DSLCalendarView!

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view, typically from a nib.
self.calendarView.delegate = self
}

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

func calendarView(calendarView: DSLCalendarView!, didSelectRange range: DSLCalendarRange!) {

}
}

错误:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DSLCalendarRange", referenced from:
__TMaCSo16DSLCalendarRange in ViewController.o
"_OBJC_CLASS_$_DSLCalendarView", referenced from:
__TMaCSo15DSLCalendarView in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

关于swift - 在 Swift 项目中使用 DSLCalendar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28682697/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com