我正在尝试更改Bool属性并且收到一个EXC_BAD_ACCESS错误.
我正在使用XCode 6和Swift.
note属性保存不错,但已完成的属性会抛出EXC_BAD_ACCESS错误
import Foundation import CoreData class Task: NSManagedObject { @NSManaged var note: String! @NSManaged var completed: Bool }
改变属性程序
// taskObject is an instance of Task() // Set the completed flag taskObject.completed = true // EXC_BAD_ACCESS