I'm having trouble converting CGPoint to string. I tried various methods, but it seems the most promising, but it still won't work. Any suggestions?
Here is my code:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; coord = [touch locationInView:touch.view]; viewcoord.text = [NSString stringWithFormat:@"coordinates %@", coord.x, coord.y];
I get the output, but it just says "null" and I donβt understand why ...
thanks
Jason source share