Hello i'm trying to write a method that update a UIProgressbar !
The problem is that when both of values arrive fine to the method (NSLog display values) the division operation generate a bad_access when i run the application !!
I tried many messages from both value like intValue/inValue ...
Help me to solve this issue and how can I print values of NSNumber
-(void)UpdateProgressbar:(NSNumber *)currentOperationNumer TotalOperationNumber:(NSNumber*)n
{
NSLog(@" operation : %i",currentOperationNumer);
NSLog(@" total : %i",n);
if (currentOperationNumer<=n)
{
[downloadBar setProgress:(currentOperationNumer/n )];
NSLog(@"progress !");
}
else
{
[self.view removeFromSuperview];
}
}