Is there a way to change the CFBundleVersion variable (an NSString) to an float.
My version currently is ‘1.0.2’, but when i parse the floatValue from it, it will return 1.00000.
How to parse it so i will get this value: 1.02000
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not possible. There are two decimal points, and no unambiguous way to represent that as a float. You might roll your own code to convert it to something, but basically the approach as such is flawed.