Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Get View Controller

$
0
0

I have a feeling that, although it's a simple question, the answer might not be simple, but I'll ask anyways

With a reference to a controller, the following is possible:

var controller = Alloy.createController("MyControl");
var view = controller.getView();
But I haven't found a way to do the opposite:
var view = $.myCustomControl;
var viewController = view.getController(); // is there a way to achieve this?

Viewing all articles
Browse latest Browse all 8068

Latest Images

Trending Articles



Latest Images