2015-02-23 51 views
0

我想在我的swift应用程序中使用DSLCalendar。到目前为止,我已经成功地创建一个桥接报和进口头:在Swift项目中使用DSLCalendar

#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) 

回答

相关问题