Cenk Isik

Cenk Isik

  • NA
  • 44
  • 30.5k

NsString Length Pleeease Help

Oct 11 2012 4:41 AM
Hi,

I want to get my stringvalue length -1 in Objective -C ,But I couldnt I share my code below please help me....


double operand;
double waitingOperand;
NString *waitingOperation; 
NString *forCharString; 
NString *forCharRanges; 
NSMutableString * lengthString;


forCharString = [NSString stringWithFormat:@"%f", operand];
lengthString = [NSString stringWithFormat:@"%d",forCharString.length];
forCharRanges = [forCharString substringWithRange:NSMakeRange(0,[lengthString intValue])];
operand = [forCharRanges doubleValue];


Thank You