xcode - Arrays and Swift -
I am trying to deal with an app in Swift and I'm experiencing the following error using the array Fatal error: Out of range index range
it appears that when an app assigns a value to index 0:
Some thoughts? (I'm using Xcode 6 Beta 4)
Your array is already empty.
if self.pts.isEmpty {self.pts.append (touch.locationInNode (self)}} other {self.pts [0] = touch.locationInNode (self)}
Comments
Post a Comment