• 安全键盘


    自定义安全键盘

    代码GitHub地址:JYSafeKeyboardManager

    演示:

     

    安全键盘(原生+网页js+遮挡适配)

    1、键盘遮挡输入框处理: //开启

    [JYKeyBoardListener useJYKeyboardListener];

    2、给某个输入框使用安全键盘:

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

    3、js端调用安全键盘

    - (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];
    }

    4、设置各种键盘的颜色属性

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

    5、设置仓储值

    [JYSafeKeyboardConfigure defaultManager].storeValue = 5000.0;

    6、是否使用InputAccessView

    [[JYSafeKeyboardConfigure defaultManager] setIsUsedInputAccessView:NO];

  • 相关阅读:
    windows 安装mongodb数据库
    shell 编程实战
    利用DNAMAN和clusterx绘制序列比对图片
    json与python对象互转
    python:向mongodb中储存数据
    python中登录mongoDB
    如何绘制漂亮的多序列比对图片
    python爬虫的基本框架
    fastqc
    转录与翻译
  • 原文地址:https://www.cnblogs.com/sunjianfei/p/9323867.html
Copyright © 2020-2023  润新知