Cordova/PhoneGap:无法在iOS上隐藏活动指示器
我在iOS上使用Cordova/PhoneGap和ActivityIndicator插件。由于某些原因,当我从回调函数调用“ActivityIndicator.hide()”时,微调器不会隐藏 任何想法都值得赞赏 谢谢Cordova/PhoneGap:无法在iOS上隐藏活动指示器,cordova,Cordova,我在iOS上使用Cordova/PhoneGap和ActivityIndicator插件。由于某些原因,当我从回调函数调用“ActivityIndicator.hide()”时,微调器不会隐藏 任何想法都值得赞赏 谢谢 ActivityIndicator.show(); // Get the search term var searchStr = $("#input-field").val().trim();
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();
});
当我从Ajax REST调用切换到使用带有本机HTTP客户端实现的Corvoda Wymsee插件时,活动指示器开始出现。我不确定这是否是正确的答案,但它对我有效。你解决了问题吗?你找到了解决方法吗?