2014-06-17 49 views
1

我在iOS上使用Cordova/PhoneGap和ActivityIndi​​cator插件。出於某種原因,當我從回調函數中調用'ActivityIndi​​cator.hide()'時,微調器不會隱藏。科爾多瓦/ PhoneGap:麻煩隱藏iOS上的ActivityIndi​​cator

任何想法讚賞。

謝謝!

  ActivityIndicator.show(); 

      // Get the search term 
      var searchStr = $("#input-field").val().trim(); 

      // Test Get Request 
      m.dataFetcher.getItemsByName(searchStr, function(res, data) { 
       if (res) { 
        // Load List View 
        that.loadListView(data); 
       } 
       // this call doesn't work: 
       ActivityIndicator.hide(); 
      }); 
+0

你解決了這個問題嗎? – RezaRahmati

+0

您是否找到解決方案? –

回答

0

活動指示燈開始出現了我,當我從阿賈克斯REST調用切換使用Corvoda Wymsee插件與本機HTTP客戶端實現。我不確定這是否是正確的答案,但它對我有用。