2017-07-17 63 views
0

我打电话给becomeFirstResponder,并显示它的键盘。开放标准的iOS键盘,而不是自定义的一个

[inputTextField becomeFirstResponder]; 

但是,它显示了安装在测试设备上的自定义键盘。有没有办法显示数字键盘的iOS标准键盘?

+0

txtFiled.keyboardType = UIKeyboardTypeDefault –

+0

我只能显示数字,所以我用UIKeyboardTypeNumberPad。 – inankupeli

+0

For keyword您是否使用过任何第三方关键词。如果您使用的是关键字子视图 –

回答

0

从答案列表最初在:Prevent custom keyboard in textfield

- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier { 
    if ([extensionPointIdentifier isEqualToString: UIApplicationKeyboardExtensionPointIdentifier]) { 
     return NO; 
    } 
    return YES; 
}