timeRemaining is a float,
timeRemainingLabel is a UILabel,
roundTime is a UITextField,
all 3 are declared in my header.
I'm getting errors with these two lines of code...
I have no idea how to convert a NSString to a float... I was crossing my fingers this would work... apparently it didn't as I got this error
I was actually expecting this one to work... I thought it would work just like in C where %f would be replaced with timeRemaining. Apparently not because I got this error
Well... at least I havn't had the same problem twice yet... it's a sign I'm learning from my mistakes, right? Good judgement comes from experience; experience comes from bad judgement.
Thanks for all the help people have been giving, and thanks in advance for help with this too.
timeRemainingLabel is a UILabel,
roundTime is a UITextField,
all 3 are declared in my header.
I'm getting errors with these two lines of code...
Code:
timeRemaining = roundTime.text;
error: incompatible types in assignment
Code:
timeRemainingLabel.text = (@"Time Remaining: %f Seconds", timeRemaining);
I was actually expecting this one to work... I thought it would work just like in C where %f would be replaced with timeRemaining. Apparently not because I got this error
error: incompatible type of argument 1 of 'setText:'
Well... at least I havn't had the same problem twice yet... it's a sign I'm learning from my mistakes, right? Good judgement comes from experience; experience comes from bad judgement.
Thanks for all the help people have been giving, and thanks in advance for help with this too.