Hours & Minutes displayed in label
I need help displaying hours & minutes in a label
Currently I have a formula that displays the answer in minutes the problem is I am getting a figure for example of 183minutes - I am looking for a way how I can make it display 3 hrs & 3 minutes.
This is what I currently have:
samount = [jfield.text floatValue] / ([gfield.text floatValue]*0.3686);
swm.text = [NSString stringWithFormat:@"%2.0f", samount];
Any assistance would be greatly appreciated.
|