Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 当我开始编辑电子邮件文本字段时,如何显示键盘?_Iphone_Xcode_Uikeyboard - Fatal编程技术网

Iphone 当我开始编辑电子邮件文本字段时,如何显示键盘?

Iphone 当我开始编辑电子邮件文本字段时,如何显示键盘?,iphone,xcode,uikeyboard,Iphone,Xcode,Uikeyboard,当我开始编辑文本字段时,我想显示键盘。我的视图中有一个电子邮件字段,因此我想在开始编辑它时显示键盘…您的问题到底是什么?默认情况下,点击UITextField时将显示一个小键盘 如果您询问如何在显示视图时使用字段自动打开键盘,请尝试: -(void)viewDidAppear:(BOOL)animated { // do other will appear stuff like call the super [nameinput becomeFirstResponder]; }

当我开始编辑文本字段时,我想显示键盘。我的视图中有一个电子邮件字段,因此我想在开始编辑它时显示键盘…

您的问题到底是什么?默认情况下,点击UITextField时将显示一个小键盘

如果您询问如何在显示视图时使用字段自动打开键盘,请尝试:

-(void)viewDidAppear:(BOOL)animated
{
    // do other will appear stuff like call the super
    [nameinput becomeFirstResponder];
}
将nameInput替换为UITextField名称。希望你是这么问的