That’s code:
NSLog(@"value = %@",[currentPatient kids_val]);
NSLog(@"value = %d",[[currentPatient kids_val] intValue]);
And this is console:
2012-07-23 21:43:52.665 Sample[24491:207] value =
14
2012-07-23 21:43:52.665 Sample[24491:207] value = 0
I need intValue. But it returns 0. I think there is a ‘/r’ problem.
yes it is problem of ‘/r’,
intValuereturns 0 if the receiver doesn’t begin with a valid decimal text representation of a number.