Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1614] iOS - scrollView.removeView() on a perviously removed view results in a view not specified being removed

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-11-01T10:31:54.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsdefect, ios, scrollview
ReporterThomas Huelbert
AssigneeReggie Seagraves
Created2011-04-15T02:57:23.000+0000
Updated2011-11-01T10:31:54.000+0000

Description

.js attached

1.run the file, and note there are 3 views.
2.tap "remove view 3" note the view is removed
3.tap the button again

results:view 1 seems ot have been removed (buttons are gone, black screen with a single view indicated)

expected - as on android, this should silently fail on the second press

Attachments

FileDateSize
removescrollview.js2011-04-15T02:57:24.000+00001164

Comments

  1. hal 2011-04-15

    On Android I can confirm that using removeView() without any arguments has no effect, which is what is expected.

    Try the following usecase code, that works fine on Android.

    https://gist.github.com/46ff47010948f9d8f506">https://gist.github.com/46ff47010948f9d8f506

  2. Wilson Luu 2011-11-01

    Bug is not valid, does not reproduce in: TiMOB sdk version: 1.8.0.v20111031173855 Studio version: 1.0.6.201110251616 OS version: Mac OS X Lion Devices tested on: ipad 4.3.5

JSON Source