[ALOY-1055] iOS: build fails using a ScrollableView that contains a ListView using Templates
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-30T20:25:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.5.0 |
Components | XML |
Labels | qe-3.3.0, qe-closed-3.4.0, qe-manualtest, qe-testadded |
Reporter | Matej |
Assignee | Tim Poulsen |
Created | 2014-06-17T18:02:40.000+0000 |
Updated | 2014-08-20T09:47:16.000+0000 |
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
File | Date | Size |
---|---|---|
Screen Shot 2014-06-18 at 2.24.27 PM.png | 2014-06-18T23:11:35.000+0000 | 76093 |