I am trying to sort an NSMutableArray for that I am using comparer selector;
- (NSComparisonResult)compare:(Product *)someObject {
return [self.Price compare:someObject.Price];
}
HomeProducts = [HomeProducts sortedArrayUsingSelector:@selector(compare:)];
I want to sort the same array and donot want to assign to other array.
request for member 'Price' in something not a structure or union ....
its not recognizing self.Price.