I need to return an array but don’t know how to do this, here is how it looks
CGPoint position[] = {
CGPointMake(500, 200),
CGPointMake(500, 200)
};
return position;
But I get an error of incompatible result. Any way around this error? Need to return multiple positions.
You can do something like this
for getting the values from array