Based on the result from ABPersonGetSortOrdering (), I want to sort a UILocalizedIndexCollation with the first name or last name.
I'm having trouble switching to the @Selector used for the collationStringSelector parameter.
It will be easy to write only this action:
NSArray * sortedSubarray; If (Abhipertatat Ording () == 0) {Sorted Sobarre = [Coalition Sort Arrayremara: [Section Object Outx: Section] Collation String Selection: @Selector (FNA)]; } Else {sortedSubarray = [collation sortedArrayFromArray: [sections objectAtIndex: section] collationStringSelector: @selector (lname)]; }I have tried to do this with any luck like this:
SEL Sorter = APPSCRESET Orders () == 0? NSSelectorFromString (@ "fname"): NSSelectorFromString (@ "lname"); Sorted content = [sorted sortedArrayFramEre: [classes objectAntxX: section] Collation String Selector: @Selector (sorter)]; I have tried to do other ideas properly, and nothing is working.
Is there a better way of distinguishing the selector's name?
You are almost there, just remove the
@selector () section Sorted around
sorter :
sorted sobrere = [coconut orderedrereremera: [classes objectsoutindex: section] collation string selector: sorter];
Comments
Post a Comment