objective c - Sorting NSFetchedResultsController's sections array -


is there way sort sections property of nsfetchedresultscontroller? let's don't want sections sorted alphabetically ascending, descending. or maybe not alphabetically ascending number of rows in section.

i can imagine sorting array directly isn't idea, since nsfetchedresultscontroller created , filled me..

"1) use transient property joins property sort , property displayed title , specified in sectionnamekeypath ,

2) use uitableviewdelegate titleforheadersection extract name value."

more here: http://machine501.com/blog/2011/04/26/uitableview-section-sorting-a-hack/


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -