Answer the question
In order to leave comments, you need to log in
How does sortedArrayUsingComparator work?
good afternoon.
Sat down on a simple question, I would like to understand the full essence and how the method works
sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2)
Answer the question
In order to leave comments, you need to log in
obj1 and obj2 will contain some two array elements. You must define the order of these two elements in the block. Accordingly, the array will call this block for different pairs of elements.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question