2017-07-07 187 views
-1

This is the crash log我每次點擊按鈕是模擬器的,我不斷收到錯誤EXC_BAD_ACCESS的一部分。此代碼是JTAppleCalendar日曆的一部分。線程1:EXC_BAD_ACCESS(代碼= 2,地址= 0x010db93e38)

import UIKit 
import JTAppleCalendar 

class EventsViewController: UIViewController { 


    @IBOutlet weak var calendarView: JTAppleCalendarView! 
    let formatter = DateFormatter() 

    override func viewDidLoad() { 
     super.viewDidLoad() 

     setupCalendarView() 

    } 
    func setupCalendarView(){ 
     calendarView.minimumLineSpacing = 0 
     calendarView.minimumInteritemSpacing = 0 

    } 

     // Do any additional setup after loading the view. 

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

日誌中是否有錯誤消息? – Larme

+0

self =(CCAID.EventsViewController)\t 0x00007f91c6c43250 –

+0

有1.沒有問題,2.沒有有用的信息(即實際的崩潰消息)。 @PraneethKandula沒有,從控制檯 – Connor

回答

0

檢查calendarView是否連接到引用出口中的故事板。

+0

我查了一下,我相信它是 –

相關問題