2015-02-23 96 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) 

回答

相關問題