开发者

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

开发者 https://www.devze.com 2023-01-05 23:30 出处:网络
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

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

精彩评论

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