Darkroom
Jun 3, 2009, 05:57 PM
i'm trying to print out a string using CGPoint locationInView, but i only receive strange numbers.
UITouch *touch = [touches anyObject];
CGPoint touchLocation = [touch locationInView:self.view];
NSString *locationMessage = [[NSString alloc] initWithFormat:@"Location: %f", touchLocation];
locationLabel.text = locationMessage;
[locationMessage release];
how can i receive X and Y coordinates as a string?
locationLable.text (example) of the above code:
Location: 3527480165821054976.000000
UITouch *touch = [touches anyObject];
CGPoint touchLocation = [touch locationInView:self.view];
NSString *locationMessage = [[NSString alloc] initWithFormat:@"Location: %f", touchLocation];
locationLabel.text = locationMessage;
[locationMessage release];
how can i receive X and Y coordinates as a string?
locationLable.text (example) of the above code:
Location: 3527480165821054976.000000
