I have :
NSInteger dollarrow = [ValuesPicker selectedRowInComponent:kDollar];
NSString *dollar = [dollarlist objectAtIndex:dollarrow];
double converteddollar=0;
I want to do a for loop on this and get the value in double , I am trying this :
for(dollar=1;dollar<=99;dollar++)
{
converteddollar = converteddollar + 2;
}
Now the dollar contains NSString how do I convert into double to do the operation successfully and then
NSString *message = [[NSString alloc] initWithFormat:@"%0.2f",converteddollar];
I am getting warnings and the app is crashing .. How can I correct it . I am learning Objective C please help . Thankyou . Sorry I did not want == i just wanted to use =