nsscanner Questions
5
Solved
I got this message when I save data to core data.
NSScanner: nil string argument
I didn't use any NSScanner method. Where did it come from?
This is a bug? What should I do with it?
Thanks hel...
5
Solved
I've just read Apple documentation for NSScanner.
I'm trying to get the integer of this string:
@"user logged (3 attempts)"
I can't find any example, how to scan within parentheses. Any ...
Covington asked 27/2, 2009 at 13:42
2
Solved
I used the below code to extract numbers from inputString using NSScanner
NSString *inputString = @"Dhoni7 notout at183*runs in 145andhehit15four's and10sixers100";
NSString *numberString;
NSArray...
Markitamarkka asked 24/5, 2015 at 15:3
2
I'm developing a travel app, I have to read a txt file that contains all the states and countries, as you can notice this is a pretty huge file to read, anyway, this is an example of the text insid...
2
Solved
I have a requirement to parse data files in "txf" format. The files may contain more than 1000 entries. Since the format is well defined like JSON, I wanted to make a generic parser like JSON, whic...
Mcginty asked 1/2, 2015 at 8:9
1
I was wondering why this works (notice I am using NSString types):
let stringToSearch:NSString = "I want to make a cake and then prepare coffee"
let searchTerm:NSString = "cake"
let scanner = N...
2
Solved
I have an odd behavior with my app and I don't know where it comes from. I have implemented a NSScanner for a text view content that works very well. The scanner works in conjunction with the text ...
Physiography asked 23/7, 2011 at 22:16
1
Solved
I have a string with formatting tags in it, such as There are {adults} adults, and {children} children. I have a dictionary which has "adults" and "children" as keys, and I need to look up the valu...
Freezer asked 22/3, 2011 at 18:35
1
Solved
Could someone please show how i could parse a ics file using NSScanner? (Iphone App)
e.g: if the .ics file was at this URL http://www.ibz.com/data/12345.ics (not a real URL!!!)
How would i first...
Lardy asked 24/2, 2011 at 23:37
1
Solved
I'm trying to replace all multiple whitespace in some text with a single space. This should be a very simple task, however for some reason it's returning a different result than expected. I've read...
Radicel asked 13/5, 2010 at 17:4
1
© 2022 - 2024 — McMap. All rights reserved.