[Solved] How to spliit a NSString in iOS [duplicate]


you can do this multiple types

assume that this is your String

NSString *origialString =@"00:03:45";

Type-1

NSArray *getBalance = [origialString componentsSeparatedByString: @":"];

origialString = [NSString stringWithFormat:@"%@:%@", [getBalance objectAtIndex:1], [getBalance objectAtIndex:2]];

Type-2

origialString = [origialString substringFromIndex:3];

Type-3

origialString = [origialString substringWithRange:NSMakeRange(3, [origialString  length]-3)];

Type-4

// Use NSDateformatter but not necessary for here 

solved How to spliit a NSString in iOS [duplicate]