0

This is a strange bug I'm experiencing when testing on an old iPod. I'm trying to get location values on touchesMoved, but the y always outputs value equal to x. If I log using NSStringFromCGPoint, then I get the correct output. How come accessing x and y separately is not working?

CGPoint location = [singleTouch locationInView:self.view];
NSLog(@"Location using NSStringFromCGPoint %@", NSStringFromCGPoint(location)); // output: {27, 136}
NSLog(@"Location using x and y %f %f",location.x, location.y); // output: 27, 27
anna
  • 2,723
  • 4
  • 28
  • 37

1 Answers1

0

It appears the problem didn't haven't anything to do with CGPoint but rather with the plist parameters.

This question solved my issue.

Community
  • 1
  • 1
anna
  • 2,723
  • 4
  • 28
  • 37
  • Correction. That solved only part of the issue. Be sure to also check out this question: http://stackoverflow.com/questions/9304716/xcode-4-2-armv6-release-bugs – anna Feb 16 '12 at 04:09