Titanium 从另一个钛合金控制器更改标签文本

Titanium 从另一个钛合金控制器更改标签文本,titanium,titanium-alloy,Titanium,Titanium Alloy,我想更改标签的文本,并从另一个控制器使其可见 win_drawer_governmentNotification.xml <Label id="filterCount" text="2"></Label> }, 现在我想更改函数中另一个控制器的label filterCount文本 我尝试了下面的代码 win\u drawer\u governmentNotification\u filter.js function applyFilter(e) { var contr

我想更改标签的文本,并从另一个控制器使其可见

win_drawer_governmentNotification.xml

<Label id="filterCount" text="2"></Label>
},

现在我想更改函数中另一个控制器的label filterCount文本 我尝试了下面的代码

win\u drawer\u governmentNotification\u filter.js

function applyFilter(e) {
var controller = Alloy.createController('win_drawer_governmentNotification');
Ti.API.info('controller = ' + controller);
var filterLabel = controller.filterCount;
Ti.API.info('filter label = ' + filterLabel);
Ti.App.fireEvent("win_drawer_governmentNotification:filterCount", {
    text : "1",
    visible : true
});
controller.filterCount.text = "1";
controller.filterCount.visible = true;
win_drawer_government notification_filter.xml

<View id="view_apply_main" onClick="applyFilter">
  <View id="view_apply">
    <Label id="lbl_apply" text="APPLY FILTERS"/>
  </View>
</View>
有人能帮我一下我做错了什么吗?我不熟悉钛。 提前谢谢

controller.filterCount.text = "1";
controller.filterCount.visible = true;