{ "id": "86939", "key": "TIMOB-7828", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-02-24T05:25:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:57:49.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Hi,\r\n\r\nLots of problem with remove method. Didn't find any function to clear all children.\r\nCreate a simple scrollView (i guess it's the same for views), add some ImageViews inside and try :\r\n\r\n{code}\r\nvar simpleView = Ti.UI.createView({\r\n\t\t\tid : 'mainView',\r\n\t\t\ttop : 0,\r\n\t\t\tleft : 0,\r\n\t\t\tlayout : 'absolute',\r\n\t\t\twidth : Ti.Platform.displayCaps.platformWidth,\r\n\t\t\theight : Ti.Platform.displayCaps.platformHeight\r\n\t\t});\r\n{code}\r\nor\r\n{code}\r\nvar simpleView == Ti.UI.createScrollView({\r\n\t\t\ttop : 0,\r\n\t\t\tzoomScale : 1,\r\n\t\t\tminZoomScale : 1,\r\n\t\t\tmaxZoomScale : 2,\r\n\t\t\twidth : Ti.Platform.displayCaps.platformWidth,\r\n\t\t\theight : Ti.Platform.displayCaps.platformHeight,\r\n\t\t\tcontentWidth : 'auto',\r\n\t\t\tcontentHeight : 'auto'\r\n}\r\n{code}\r\n\r\nthen ...\r\n\r\n{code}\r\nvar images = [];\r\n\r\nfor(var i=0; i < 10; i++){\r\n images.push(Ti.UI.createImageView({\r\n\t\t\t\t\timage : 'image' + i + '.jpg',\r\n\t\t\t\t\twidth : 600,\r\n\t\t\t\t\theight : 400,\r\n\t\t\t\t\tleft : 0,\r\n\t\t\t\t\ttop : 0\r\n\t\t\t\t}));\r\n}\r\n\r\nfor(var i=0; i