{ "id": "119988", "key": "TIMOB-15203", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15700", "description": "2013 Sprint 21 API", "name": "2013 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-17T19:33:14.000+0000", "created": "2013-09-16T07:39:14.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios7", "module_media", "qe-testadded", "showcamera" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-18T11:01:01.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": "On iOS7, {{Ti.Media.showCamera}} is showing the status bar over the camera view, partially covering the flash and camera-switch controllers.\r\n\r\nh1. Steps to reproduce\r\n\r\n# Create a new app: {{titanium create -p ios -n testCamera --id test.camera -d .}}\r\n# For {{app.js}} use the following, [taken from the docs|http://docs.appcelerator.com/titanium/latest/#!/guide/Camera_and_Photo_Gallery_APIs-section-29004913_CameraandPhotoGalleryAPIs-Camera]:\r\n {code}\r\n var win = Titanium.UI.createWindow({\r\n backgroundColor: '#fff'\r\n });\r\n\r\n win.addEventListener('click', function() {\r\n\r\n Titanium.Media.showCamera({\r\n success: function(event) {\r\n // called when media returned from the camera\r\n Ti.API.debug('Our type was: ' + event.mediaType);\r\n if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n var imageView = Ti.UI.createImageView({\r\n width: win.width,\r\n height: win.height,\r\n image: event.media\r\n });\r\n win.add(imageView);\r\n } else {\r\n alert(\"got the wrong type back =\" + event.mediaType);\r\n }\r\n },\r\n cancel: function() {\r\n // called when user cancels taking a picture\r\n },\r\n error: function(error) {\r\n // called when there's an error\r\n var a = Titanium.UI.createAlertDialog({\r\n title: 'Camera'\r\n });\r\n if (error.code == Titanium.Media.NO_CAMERA) {\r\n a.setMessage('Please run this test on device');\r\n } else {\r\n a.setMessage('Unexpected error: ' + error.code);\r\n }\r\n a.show();\r\n },\r\n saveToPhotoGallery: true,\r\n allowEditing: true,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO]\r\n });\r\n\r\n });\r\n\r\n win.open();\r\n {code}\r\n# Run the app on the device: {{titanium build -p ios -T device}}\r\n# Tap the window to show the camera\r\n# Notice the status bar showing over the camera view as in attached screenshot", "attachment": [ { "id": "42507", "filename": "foto.PNG", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-16T07:39:14.000+0000", "size": 1008258, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: showCamera shows status bar over camera view", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1.3.RC (updated version)\r\niOS 7 GM seed on iPhone 4S", "comment": { "comments": [ { "id": "275039", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4785", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T20:48:44.000+0000", "updated": "2013-10-14T20:48:44.000+0000" }, { "id": "275619", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Status bar is not shown any more in camera view.\r\n\r\nVerified fixed on:\r\nDevice : iPhone 5 , iOS version : 7.0\r\nSDK: 3.2.0.v20131016191202\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310170829\r\nXCode : 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-18T11:00:24.000+0000", "updated": "2013-10-18T11:00:24.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }