i'm trying to print out a string using CGPoint locationInView, but i only receive strange numbers.
how can i receive X and Y coordinates as a string?
locationLable.text (example) of the above code:
Code:
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:
Code:
Location: 3527480165821054976.000000