I am trying to do an if-else statement for my CGPoints how would I be able to do that, I tried this code...
if (point1 != point2)
{
//statement
}
I'm having this error
Invalid operand for binary expression...
Thanks!
Try to use function CGPointEqualToPoint
instead.
if (!CGPointEqualToPoint(p1,p2))
{
//statement
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With