【发布时间】:2011-07-10 16:36:39
【问题描述】:
我想知道如何限制用户在编辑 UITextField 时可以输入的 LINES 数量(不是其他问题中询问的字符)。
理想情况下,我想将输入限制为最大值。 10 行。
我需要从哪里开始?我用方法做到这一点吗?在
- (BOOL)textViewShouldBeginEditing:(UITextView *)aTextView
【问题讨论】:
-
你可以在in this post找到你的答案。
标签: iphone cocoa-touch uitextview