I have this equation here:
gas.text = [[ NSString alloc] initWithFormat:@"$%f", totalDistance *0.000621371/30 *4.00];
I want the 30 and 4.00 a variable, so the user can change the number any time in setting. Thank You!!
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.
Create them as variable as Int and double in place of that like
You can get the value in these variable ,it will change dynamically.
Updated :- get the text and there is one method intValue so use that one
[text intValue]