am incercat medota keysSortedByValueUsingSelector dar imi pune cheile in array nesortate.
array = [dictionary keysSortedByValueUsingSelector: @selector (compare:)];
Si as mai avea o problema dintr-o carte,tot un array dar NSMutableArray ale carui elemnte sunt fractii(obiecte).
Am incercat asa dar nu merge:
[array sortUsingSelector: @selector(compareFractions:)];
- NSCoparisonResult compareFractions: (id) f { return [(numerator/denominator) compare: (f.numerator/f.denominator)]; }
Multumesc anticipat.