Possible Duplicate:
How to convert an NSString into an NSNumber
How can I convert an NSString (@”Five” for example) into an NSNumber (5). I have looked to see if any questions answer this on Stack Overflow, but it seems that many people have been asking for a number to string conversion – not the other way around.
This works roughly and should at least get you started:
Some things to think about:
I hope that helps.