Hi again guys,
I'm looking for a way to either iterate over each line in an NSString or to to count the number of lines in an NSString so that I can iterate over them . If anyone could point me in the right direction it would be much appreciated!
Also, is there a way to strip unwanted characters from the start/end of a line: like chomp in perl or strip() in Python.
Thanks in advance,
Mark.
I'm looking for a way to either iterate over each line in an NSString or to to count the number of lines in an NSString so that I can iterate over them . If anyone could point me in the right direction it would be much appreciated!
Also, is there a way to strip unwanted characters from the start/end of a line: like chomp in perl or strip() in Python.
Thanks in advance,
Mark.