Found answer here:
NSString *string = @"oop:ack:bork:greeble:ponies";
NSArray *chunks = [string componentsSeparatedByString: @":"];
More Related Contents:
- Difference between objectForKey and valueForKey?
- Best way to define private methods for a class in Objective-C
- Picking a Random Object in an NSArray
- How to sort NSMutableArray using sortedArrayUsingDescriptors?
- Objective-C Introspection/Reflection
- setValue:forUndefinedKey: this class is not key value coding-compliant for the key [duplicate]
- Rounding numbers in Objective-C
- Managing multiple asynchronous NSURLConnection connections
- Best way to remove from NSMutableArray while iterating?
- How can I add properties to an object at runtime?
- Enable access for assistive devices programmatically on 10.9
- What is meant by .delegate=self?
- How to prevent circular reference when Swift bridging header imports a file that imports Hopscotch-Swift.h itself
- How to compare two dates in Objective-C
- If “a == b” is false when comparing two NSString objects
- NSString: isEqual vs. isEqualToString
- How do I create a temporary file with Cocoa?
- How to get the reference count of an NSObject?
- How to escape double quotes in string?
- Check that an email address is valid on iOS [duplicate]
- NSString is integer?
- Class Foo is implemented in both MyApp and MyAppTestCase. One of the two will be used. Which one is undefined
- Observe a File or Folder in Objective-C
- How to wake from sleep programmatically if lid closed?
- Creating a ZIP archive from a Cocoa application
- How to create transparent notification window?
- Properties and Instance Variables in Objective-C
- Chaining Core Animation animations
- Objective C – getting line number or full stack trace from debugger error?
- How does Apple update the Airport menu while it is open? (How to change NSMenu when it is already open)