Hi,
If you want to split a string between a symbol like, ‘.’ or ‘-‘ or ‘,’ in Objective C, what to do?
See the code for how to split string in Objective C.
NSString *myString = @βsong.mp3β; NSArray *splitArray = [myString componentsSeparatedByString:@β.β];
This code will split the string ‘myString’ into ‘song’ & ‘mp3’ (separated by ‘.’) and stores in the splitArray indices 0 & 1 respectively.
π
thanks. it very help me π