[Solved] Get substring from string variable and save to NSMutableArray [closed]
[ad_1] NSString *str = @”M||100|??|L||150|??|S||50″; NSString *stringWithoutBars = [str stringByReplacingOccurrencesOfString:@”||” withString:@” “]; NSMutableArray *array = [[NSMutableArray alloc]initWithArray:[stringWithoutBars componentsSeparatedByString:@”|??|”]]; [ad_2] solved Get substring from string variable and save to NSMutableArray [closed]