开发者

Cocoa - Method to count the characters in a text field?

I'm pretty new to objec开发者_高级运维tive C started a few days ago...

I want to count all the chars in a text field. Could

[textField length]

be useful at all and how do I use it?


NSUInteger len = [[textField stringValue] length];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜