This is my code that convert a string to float
-(void) onUploadProgress:(id) sender valueString:(NSString *)valueString
{
NSLog(@"Value String = %@", valueString);
[progressbar setProgress:[valueString floatValue]];
}
This is the selector that call the function above
NSString *valueString = [NSString stringWithFormat:@"%f", ((float)totalBytesWritten/(float)totalBytesExpectedToWrite)];
[delegate performSelector:progressSelector withObject:(NSString*)valueString];
This code work on my iPad ios5 but when I tested on IOS 6 simulator , it throw me an exception [controller floatValue]
unrecognized selector. I know it was caused by this but not sure why. It does have value in valueString variable.
Does anyone know why?