2017-07-17 61 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; 
}