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.
}
答案 0 :(得分:0)
检查在引用插座的故事板中是否连接了calendarView。