Nsnumberformatter
A Cocoa class for formatting and parsing numerical values
Nsscanner
The NSScanner class is an Objective-C class implemented in the Foundation framework, starting from Mac OS X 10.0
Others
Example |
---|
I was originally using nsscanner because it was easier than nsnumberformatter to use but i ran into the same problem it doesn t parse the entire string just the first number in the string from question NSNumberFormatter iOS 3.2 Bug? |