I am getting my app’s version like this:
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
And then trying to convert it to a float like this:
[version floatValue]
Now that all works great, but when I have a minor version like “1.1.1” everything behind the second decimal point is truncated.
What is the best way to keep everything behind the second decimal point?
To keep it in sync with how you started…
But I’d recommend looking at this..
How do I determine the OS version at runtime in OS X or iOS (without using Gestalt)?