lastPointX の値をラベル テキストに入れようとしましたが、うまくいきません。Interface Builder で、「x」値のラベルと「y」値のラベルの 2 つのラベルを作成します。どなたか解決策をご存知の方、質問にお答えください。
ありがとう。
これがコードとエラーです。
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch *touch = [touches anyObject];
lastPoint = [touch locationInView:self.view];
CGFloat lastPointX = lastPoint.x;
CGFloat lastPointY = lastPoint.y;
labelx.text == lastPointX; // <----- error: Semantic Issue: Invalid operands to binary expression ('NSString *' and 'CGFloat' (aka 'float'))
}