{ "id": "62246", "key": "TIMOB-1614", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-01T10:31:54.000+0000", "created": "2011-04-15T02:57:23.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "defect", "ios", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-01T10:31:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

.js attached

\n

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

\n

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

\n

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

{html}", "attachment": [ { "id": "18026", "filename": "removescrollview.js", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:24.000+0000", "size": 1164, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS - scrollView.removeView() on a perviously removed view results in a view not specified being removed", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126193", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

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

\n

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

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:24.000+0000", "updated": "2011-04-15T02:57:24.000+0000" }, { "id": "171048", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Bug is not valid, does not reproduce in:\r\nTiMOB sdk version: 1.8.0.v20111031173855\r\nStudio version: 1.0.6.201110251616\r\nOS version: Mac OS X Lion\r\nDevices tested on: ipad 4.3.5", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-11-01T10:29:39.000+0000", "updated": "2011-11-01T10:29:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }