【发布时间】:2011-11-18 08:53:26
【问题描述】:
可能重复:
How to add UITextfield on click of UIButton and make it editable
我想显示当单击按钮时变为可编辑的 UITextField。 有知道的请给我答案。
【问题讨论】:
-
你想在同一个uiview上显示吗?
标签: iphone uitextfield
可能重复:
How to add UITextfield on click of UIButton and make it editable
我想显示当单击按钮时变为可编辑的 UITextField。 有知道的请给我答案。
【问题讨论】:
标签: iphone uitextfield
像这样为 UIButton 创建一个 IBAction:
-(IBAction)showTextFied:(id)sender{
yourTextField.editable=YES;//turn to editable mode if it's not
[yourTextField becomeFirstReponder];//show the keyboard
}
【讨论】: