线程1:EXC_BAD_ACCESS(代码= 2,地址= 0x010db93e38)

时间:2017-07-07 17:38:14

标签: ios swift

This is the crash log每次点击作为模拟器一部分的按钮,我都会收到错误EXC_BAD_ACCESS。此代码是JTAppleCalendar日历的一部分。

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.
    }

1 个答案:

答案 0 :(得分:0)

检查在引用插座的故事板中是否连接了calendarView。