2017-07-17 11 views
0

私はbecomeFirstResponderを呼び出し、キーボードを表示しています。標準のiOSキーボードを開きます。

[inputTextField becomeFirstResponder]; 

ただし、テストデバイスにインストールされているカスタムキーボードが表示されます。数字パッド用のiOS標準キーボードを表示する方法はありますか?回答リストから

+0

txtFiled.keyboardType = UIKeyboardTypeDefault –

+0

私は数字だけを表示する必要があるので、私はUIKeyboardTypeNumberPadを使用しています。 – inankupeli

+0

キーワードthirdpartyキーワードを使用しましたか?使用している場合はキーワードサブビュー –

答えて

0

もともとで:Prevent custom keyboard in textfield

- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier { 
    if ([extensionPointIdentifier isEqualToString: UIApplicationKeyboardExtensionPointIdentifier]) { 
     return NO; 
    } 
    return YES; 
} 
関連する問題