I received an NSString from the server. Now I want to split it into the substring which I need. How to split the string?
NSString
For example:
substrin
You can also split a string by a substring, using NString's componentsSeparatedByString method.
Example from documentation:
NSString *list = @"Norman, Stanley, Fletcher"; NSArray *listItems = [list componentsSeparatedByString:@", "];