Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20218] ScrollableView crash in 5.1.1 when setting the views property after it's been set

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2016-01-11T01:59:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterRick Blalock
AssigneeEric Merriman
Created2016-01-09T14:26:01.000+0000
Updated2017-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;

Comments

  1. Chee Kiat Ng 2016-01-11

  2. Lee Morris 2017-03-21

    Closing ticket as duplicate.

JSON Source