I have about 50 CGPoint objects that describe something like a \"path\", and I want to add them to an NSArray. It\'s going to be a method that will just return the correspon
I use this:
Create array:
NSArray *myArray = @[[NSValue valueWithCGPoint:CGPointMake(30.0, 150.0)],[NSValue valueWithCGPoint:CGPointMake(41.67, 145.19)]];
Get 1st CGPoint object:
CGPoint myPoint = [myArray[0] CGPointValue];