Hey in trying to track multiple touches and i get this error. And I know why i get the error its because of the Set at the top of the touchesbegin function. but i have to keep my Set in the overrideBegin. so how would i solve this error and make this code error free with out changing the Orignal override values.
Code:
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
var touchesArray = touches.allObjects()
var nNumTouches = touchesArray.count
var touch: UITouch!
var ptTouch = CGPoint.zero
for nTouch in 0..<nNumTouches {
touch = touchesArray[nTouch]
ptTouch = touch.locationInView(self.view)
//I need it to print the location of each individual touch like finger 1 or finger 2 is in this location
}
}