安全鍵盤

自定義安全鍵盤git

 

代碼GitHub地址:JYSafeKeyboardManagergithub

演示:web

 

安全鍵盤(原生+網頁js+遮擋適配)安全

一、鍵盤遮擋輸入框處理: //開啓spa

[JYKeyBoardListener useJYKeyboardListener];

 


二、給某個輸入框使用安全鍵盤:code

[JYSafeKeyboardManager useSafeKeyboard:self.pwdTextField type:SafeKeyboard_Type_Default];

[JYSafeKeyboardManager useSafeKeyboard:self.textView type:SafeKeyboard_Type_Number];

 

三、js端調用安全鍵盤blog

- (void)showKeyBoard:(NSString*)param{
  NSDictionary *dic = [self parseDictWithJsonString:param];
  NSDictionary *frameDic = dic[@"frame"];
  NSLog(@"%@",dic);
  [JYSafeKeyboardManager useWebViewSafeKeyboardWithType:[dic[@"type"] integerValue] inputId:dic[@"inputid"] webView:self.webview frameDic:frameDic];
}

 

四、設置各類鍵盤的顏色屬性webview

[[JYSafeKeyboardConfigure defaultManager] setKeyboardBackgroundColor:[UIColor redColor]];

 

五、設置倉儲值get

[JYSafeKeyboardConfigure defaultManager].storeValue = 5000.0;

 

 

六、是否使用InputAccessViewinput

[[JYSafeKeyboardConfigure defaultManager] setIsUsedInputAccessView:NO];
相關文章
相關標籤/搜索