为视图禁用本机脚本IQKeyboardManager插件

时间:2018-08-27 08:23:36

标签: nativescript

如何为特定视图禁用nativescript-IQKeyboardManager插件?
我找到了this,但似乎不是通过此插件完成的

1 个答案:

答案 0 :(得分:1)

您可以像这样在$host = "localhost"; // I have tried using both 127.0.0.1 and localhost here $db = "db_name"; //db name goes here $username = "username"; //username goes here $password = "password"; //password goes try { //Creating a PDO instance $conn = new PDO("mysql:host=$host;dbname=$db", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); $conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ); }catch(\PDOException $e){ // if connection fails, show PDO error echo "Connection Failed: ". $e->getMessage(); } 上设置enable属性,例如在'loaded'事件或组件的构造函数中

IQKeyboardManager.sharedManager