objective c - iPhone time comparison -
I am trying to figure out how to prepare an 'if' statement which, as a condition Time uses the value. For example:
if (time
I know that the comparison of a string of "5:23" can not be compared to this kind, but I do not think that I can only change a string value like That's straight into an integer Any ideas?
Try this:
NSString * realTimeString = @ "10: 00 "; NSString * Some Time String = [Real Timestring StringBeerPlanelingrsOffString: @ ":" String: @ ".]; Float time = [some timestring float value]; If (time is <= 10.00) {Score = 3; } And if (time <= 20.00) {score = 5; } And {score = 9; }
Comments
Post a Comment