Ik heb de volgende situatie:
For some reason, geeft de NSLog in de 'updateStatistics' functie '0', terwijl de NSLog in de processAllPastDataForStatistics() wel netjes '23' geeft.
Dit is zo'n enorm simpel probleem dat ik wel iets heel stoms over het hoofd moet zien, maar het ontgaat me. Enig idee?
code:
1
2
3
4
5
6
7
8
9
| - (void) processAllPastDataForStatistics { float val = 23;// [[event batteryLevel] floatValue]; [self updateStatistics:val]; NSLog(@"value %f",val); } - (void) updateStatistics:(float) val { NSLog(@"%f",val); } |
For some reason, geeft de NSLog in de 'updateStatistics' functie '0', terwijl de NSLog in de processAllPastDataForStatistics() wel netjes '23' geeft.
Dit is zo'n enorm simpel probleem dat ik wel iets heel stoms over het hoofd moet zien, maar het ontgaat me. Enig idee?