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.
使用 inappsettingskit,我正在寻找一种在单击文本字段单元格(而不是键盘)时显示 uipickerview(带有自定义值)的方法。
有什么办法吗?
谢谢你的帮助 :)
阅读应用程序中的设置并显示选择器视图而不是标准键盘使用UITextField inputView属性。
UITextField
myTextField.inputView = myPickerView;
来自 inputView 的 Apple 文档。
如果此属性中的值为 nil,则文本字段在成为第一响应者时显示标准系统键盘。将自定义视图分配给此属性会导致显示该视图。