English 中文(简体)
隐形地带隐藏着键盘?
原标题:uitextfield hide keyboard?

On the iphone. When I press on the uitextfield I don t want a keyboard to popup.

我想要的是同样的行为,根本就不是关键。 当用户发布<代码>uitextfield时,我怎么能够躲藏/收紧钥匙板?

最佳回答

如果你想要的是完全相同的行为,没有钥匙板,就会尝试

textfield.inputView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
问题回答

将NO送回UIText FieldDelegate --(BOOL) FieldtextShould BeginEditing:UIText Field *)text Field应当这样做。

我认为你可以使用

www.un.org/Depts/DGACM/index_spanish.htm

代表制

www.un.org/Depts/DGACM/index_french.htm

案文 类似领域:

-(void)textFieldDidBeginEditing:(UITextField *)textField
{
    if (textField == yourTextField){
      [yourTextfield resignFirstResponder];
    }
}

采用这一方法,在任何地方排除一个键盘。

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    [self.view endEditing:YES];
}

or by clicking on keyboard done button

-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签