{ "id": "99250", "key": "TIMOB-10450", "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": [ { "id": "14065", "description": "Sprint 2012-17 API", "name": "Sprint 2012-17 API", "archived": true, "released": true, "releaseDate": "2012-08-27" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-29T16:12:01.000+0000", "created": "2012-08-15T09:40:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_scrollview", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-27T11:21:37.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": "h6.Feature\r\nEnable setZoomScale:animated: so scrollView can be animated.\r\n\r\nh6.setZoomScale:animated:\r\nA floating-point value that specifies the current zoom scale.\r\n\r\n- (void)setZoomScale:(float)scale animated:(BOOL)animated\r\n\r\nh6.Apple release docs\r\nhttp://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html\r\n\r\nh6.The case: zoomScale property cannot be animated on scrollview\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar scroll = Ti.UI.createScrollView({\r\n\ttop: 0,\r\n\tbottom: 0,\r\n\tleft: 0,\r\n\tright: 0,\r\n\tmaxZoomScale: 5,\r\n\tminZoomScale: 1\r\n});\r\nwin.add(scroll);\r\n\r\nvar img = Ti.UI.createImageView({\r\n\twidth: 320,\r\n\theight: 320,\r\n\timage: 'http://www.ryanboden.com/wp-content/uploads/2011/07/jay-z-and-kanye-west-watch-the-throne.jpg',\r\n\tdefaultImage: 'none',\r\n\thires: true,\r\n\t\r\n});\r\nimg.addEventListener('doubletap', function(e){\r\n\r\n\tscroll.animate({\r\n\t\tzoomScale: 1,\r\n\t\tduration: 300\r\n\t});\r\n\r\n //zoomScale only works on setZoomScale\r\n //which has the animated parameter to perform the animation \r\n //scroll.setZoomScale( 1, { animated: true} );\r\n\r\n});\r\n\r\nscroll.add(img);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Feature: Expose setZoomScale:animated: method", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "216929", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged https://github.com/appcelerator/titanium_mobile/pull/2818", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T16:12:01.000+0000", "updated": "2012-08-29T16:12:01.000+0000" }, { "id": "223698", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue. Verified on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121015133920\r\nDevice: iPhone 4S (4.3.5)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-15T23:02:46.000+0000", "updated": "2012-10-15T23:02:46.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }