I'm using a "custom" progressView and set the progress property a value like '0.3'
If i code the progressView hardcoded like so
self.progressView.progress = 0.3;
the progress gets drawed... if I call a method which returns a float in a switch-case the debugger shows me the progress is instead of 0.3 0.30000001 and the progress doesn't gets drawed.....
Method:
- (float)getProgressOfStepIndex:(int)stepIndex {
switch (stepIndex) {
case 0:
return 0.1;
case 1:
return 0.3;
case 2:
return 0.5;
case 3:
return 0.7;
case 4:
return 0.9;
default:
return 0.0;
}
}
At first I just thought that the drawRect method is wrong, but it can't be because it draws correct if I set the progress hardcoded to 0.3 right?
It runs on iOS6 perfectly, only iOS7 problem!