Hi all,
i want to sort NSArray of UIImageView according their frame?
i try for NSSortDescriptor but when i write key=@"frame" unrecognized selector error occur. please tell me how to sort my array.
thanks in advance.
Hi all,
i want to sort NSArray of UIImageView according their frame?
i try for NSSortDescriptor but when i write key=@"frame" unrecognized selector error occur. please tell me how to sort my array.
thanks in advance.
You can use this to sort that array http://stackoverflow.com/questions/2553894/sorting-nsarray-and-returning-nsarray
You can always write your own comparator function and define custom sorting behavior by using NSArray sortedArrayUsingSelector method