{ "id": "62422", "key": "TIMOB-1790", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:10.000+0000", "created": "2011-04-15T03:02:29.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "gallery", "imageview", "ios", "photo" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:10.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}
This works:
\n\nTi.Media.openPhotoGallery({\n allowEditing: true,\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\n success: function(e) {\n if (e.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\n var imageView = Ti.UI.createImageView({image: e.media});\n Ti.UI.currentWindow.add(imageView);\n }\n});
\n
\nBut if set allowEditing
to false, I get this\nerror:
\n[ERROR] invalid image type. expected either TiBlob or TiFile, was: TiBlob in -[TiUIImageView setImage_:] (TiUIImageView.m:618)
\n
Tested 1.6.0GM. Test in bugtests.