Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在下面编写了这段代码来获取文本字段的长度并在它之后弹出一个警报,它一直要求我在 中声明长度,@interface我该怎么做?
@interface
if ([myTextField length]<=0)
也许你应该使用 [myTextField.text length]?
如果这不是问题,那么也许您可以发布一些代码和错误消息以获得更多说明;D