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.
可能重复: 禁用 UITextField 键盘?
如果您有多个文本字段,如何防止在少数文本字段之一中出现浮动键盘?
将文本字段的委托设置为self并实现
self
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { return NO; }