-1

I got this compiler error: Cannot assign to 'sci' in 'self'

class LCCVC: UICollectionViewCell {

    override func touchesEnded(touches: NSSet!, withEvent event: UIEvent!) {
        super.touchesEnded(touches, withEvent: event)

        sci = nil
    }
}

sci is a global variable declared in an other file like this:

var sci: NSManagedObject?
János
  • 32,867
  • 38
  • 193
  • 353

1 Answers1

1

I had a method called sci() in that class, that caused the compiler error.

János
  • 32,867
  • 38
  • 193
  • 353