Ios 正在尝试在SmartFace App Studio中显示选择器{}

Ios 正在尝试在SmartFace App Studio中显示选择器{},ios,picker,smartface.io,Ios,Picker,Smartface.io,我一直在使用SmartFace.io中的示例代码,如下所示: pick( myCars, selectedIndex, function(e) {Pages.NewPage.Label1.text = myCars[e.index]; selectedIndex = e.index; }, function() {}, function() {} ); 然而,选择器只是不想在模拟器中显示。我还尝试将此代码放在separate函数中,并从Imag

我一直在使用SmartFace.io中的示例代码,如下所示:

    pick(
    myCars,
    selectedIndex,
    function(e) {Pages.NewPage.Label1.text = myCars[e.index]; selectedIndex = e.index; },
    function() {},
    function() {}
 );
然而,选择器只是不想在模拟器中显示。我还尝试将此代码放在separate函数中,并从ImageButton的OnPress事件调用它,但仍然没有任何结果

我正在iPhone4S上尝试这个,所以可能这就是问题所在

任何关于我做错了什么的暗示都将不胜感激

谢谢
Gerry

我只是在第1页添加了一个文本按钮和标签,然后写下这些代码行。它是有效的;也许,其他一些代码会破坏函数

var myCars = ["Audi", "Volvo", "Volkswagon"]; 
var selectedIndex = 0;

/**
* Creates action(s) that are run when the user press the key of the devices.
* @param {KeyCodeEventArguments} e Uses to for key code argument. It returns e.keyCode parameter.
* @this SMF.UI.Page
*/
function Page1_Self_OnKeyPress(e) {
    if (e.keyCode === 4) {
        Application.exit();
    }
}
/**
* Creates action(s) that are run when the page is appeared
* @param {EventArguments} e Returns some attributes about the specified functions
* @this SMF.UI.Page
*/
function Page1_Self_OnShow() {
    //Comment following block for removing navigationbar/actionbar sample
    //Copy this code block to every page onShow
    header.init(this);
    header.setTitle("Page1");
    header.setRightItem("RItem");
    header.setLeftItem();
    /**/
}
/**
* Creates action(s) that are run when the object is pressed from device's screen.
* @param {EventArguments} e Returns some attributes about the specified functions
* @this SMF.UI.TextButton
*/
function Page1_TextButton1_OnPressed(e){
      pick(
    myCars,
    selectedIndex,
    function(e) {Pages.NewPage.Label1.text = myCars[e.index]; selectedIndex = e.index; },
    function() {},
    function() {}
 );
}

我应该提到的是,我已经为myCars设置了变量,并选择了var myCars=[“奥迪”、“沃尔沃”、“大众汽车”]和var selectedIndex=0作为索引,这就成功了。我的代码中一定有什么东西破坏了它,但它没有抛出错误。不管怎样,它现在起作用了。。。谢谢你的帮助