Collection Classes and String Split Function

Discussion in 'iOS Programming' started by teguh123, Mar 31, 2011.

  1. macrumors member

    Mar 22, 2011
    Does objective C has collection class? Is it NSArray?

    Is there a way to split string by some character, say * and get an array?

    I want to be able to "sort" that collection. Perhaps by using some form of lambda expression.
  2. macrumors 68040

    Apr 22, 2005
    Since you are asking about an operation on a string, I suggest you look at the documentation for NSString.
  3. macrumors 604

    Aug 9, 2009
    This is the third time I've posted this information, in replies to your questions.

    See this reply on your other thread:

    The Collections Programming Topics link has as its first section "Arrays: Ordered Collections". That has a sub-section "Sorting Arrays".

    I suggest you read the entire Collections Programmings Topics document, and then look at the second link, which lists all the classes in the Foundation framework.
  4. macrumors 68030


    Sep 2, 2008
    Yes, all those things are do-able. Look at these guides:

    Collections Programming Topics Guide
    String Programming Guide for Core Foundation
    Sort Descriptor Programming Topics
  5. macrumors 604

    Aug 9, 2009

Share This Page