Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
NsString Length Pleeease Help
Cenk Isik
12y
859
1
Reply
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
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
playing swf in ipad
how to save recorded sound file on table in iphone/ipad