简体   繁体   中英

Scanning a string line by line

I have an nsstring with 50 of lines i want to scan a particular string using nsscanner scanning each lines.

Is it possible ?

Can anyone help me?

Thanks in advance......

It is possible; you just need to split the string, and then scan each line for the string you are looking for.

Why are you using NSScanner ? Would not it be easier to simply search for the string?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM