Qeustion : To a large extent, as indicated in the title. I browsed the internet but cannot find anything that is easy to understand. I have NSArrayone that contains a lot NSValue. Those NSValuecontain a CGPoint. I want to sort them by x, and then ysecond.
Some code :
NSValue * valuePointObject = [NSValue valueWithCGPoint:CGPointMake(x, y)];
NSArray *array = [[NSArray alloc] initWithObjects: valuePointObject, valuePointObject2, ..., nil];
source
share