Count string value?
Hey, Im a newbie in cocoa and I have a stri开发者_运维问答ng and I am trying to count how long it is. I have been searching through Apples docs but I can't find anything.
NSString *word = @"word";
How would I figure out how many characters is in a string?
Thanks
This should do the trick:
[word length];
精彩评论