Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1055

iOS: build fails using a ScrollableView that contains a ListView using Templates

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Alloy 1.5.0
    • Component/s: XML
    • Environment:

      TiSDk 3.3.0.v20140617161713
      Appcelerator Studio 3.3.0.201406171619
      CLI 3.3.0-rc
      Alloy 1.4.0-rc and 1.3.1.GA

    • Sprint:
      2014 Sprint 13 Alloy

      Description

      It is not possible to put ListView with Templates inside a ScrollableView. Application will throw an error:

      [ERROR] :  Script Error {
      [ERROR] :      backtrace = "#0 () at file:///.../myApp.app/alloy.js:231";
      [ERROR] :      line = 58;
      [ERROR] :      message = "-[NSNull krollObjectForBridge:]: unrecognized selector sent to instance 0x45c3068";
      [ERROR] :      sourceId = 301210048;
      [ERROR] :      sourceURL = "file:///.../myApp.app/alloy/controllers/index.js";
      [ERROR] :  }
      

      index.xml

      <Alloy>
          <Window>
              <ScrollableView>
                  <ListView defaultItemTemplate="template">
                      <Templates> <!-- Does work without Templates-->
                          <ItemTemplate name="template">
                              <ImageView bindId="pic" id="icon"/>
                              <Label bindId="info" id="title"/>
                              <Label bindId="es_info" id="subtitle"/>
                          </ItemTemplate>
                      </Templates>
                  </ListView>
              </ScrollableView>
          </Window>
      </Alloy>
      

      Discussion: http://developer.appcelerator.com/question/175229/-nsnull-krollobjectforbridge-unrecognized-selector-sent-to-instance-0x45c3068

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skypanther Tim Poulsen
                Reporter:
                sko Matej
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration