我收到了这个编译器错误:无法在“self”中分配给“sci”
class LCCVC: UICollectionViewCell {
override func touchesEnded(touches: NSSet!, withEvent event: UIEvent!) {
super.touchesEnded(touches, withEvent: event)
sci = nil
}
}
sci 是在其他文件中声明的全局变量,如下所示:
var sci: NSManagedObject?