我们可以添加或使用handleOpenURL其他应用程序委托

时间:2016-08-15 12:24:13

标签: ios objective-c xcode delegates uiapplication

我正在为我的产品构建SDK,并且没有应用委托类。我在我的SDK中使用了Dropbox Integration,所以我一定会使用以下方法。

if (window.innerWidth < 400) {
  document.getElementById("touchTemp").addEventListener("click",
    function(e) {
      console.log("Screen width is less than 400px");
      var text = $('#temperature').text();
      if (text.slice(-1) === "F") {
        $("#temperature").html(tempCelsius + " C" + "°");
      } else {
        $("#temperature").html(tempFahrenheit + " F");
      }

      e.preventDefault();
    });
} // end of "if statement"

所以问题是没有app委托比如何使用上面的方法? 或者任何替代解决方案在另一个类中使用它(比如继承UIResponder类)。 寻求帮助。

0 个答案:

没有答案