[TIMOB-20218] ScrollableView crash in 5.1.1 when setting the views property after it's been set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-01-11T01:59:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Rick Blalock |
Assignee | Eric Merriman |
Created | 2016-01-09T14:26:01.000+0000 |
Updated | 2017-03-21T17:00:18.000+0000 |
Description
This worked prior to 5.1.1. When setting the views property of a scrollable, after it's already been set, causes the app to lock up.
$.interstitialAD = Ti.UI.createImageView({
defaultImage: "",
image: 'someimage.png',
width: "100%",
height: Ti.UI.SIZE
});
$.interstitialAD.addEventListener("click", function(_event) {
App.openAD(_event.source.data);
});
var views = $.scrollableView.views;
views.splice(1, 0, $.interstitialAD);
$.scrollableView.views = views;
Closing ticket as duplicate.