How to convert an NSString into an NSNumber
How can I convert a NSString containing a number of any primitive data type (e.g. int, float, char, unsigned int, etc.)? The problem is, I don’t know which number type the string will contain at runtime. I have an idea how to do it, but I’m not sure if this works with any type, also … Read more