{ "id": "97903", "key": "TIMOB-10119", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-07-30T11:41:01.000+0000", "created": "2012-07-24T12:10:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-02-27T02:34:38.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": [], "description": "h4. Problem\r\nWhen user specifies false for showControls on iOS cameraView, a black bar appears across the bottom of the page where the tab group (camera controls) used to be.\r\n\r\nh4. Sample Code\r\n{code}\r\nfunction CameraWindow(){\r\n\tvar win = Ti.UI.createWindow({\r\n \t\tbackgroundColor: 'green',\r\n \t\tnavBarHidden:true,\r\n \t\ttabBarHidden:true\r\n\t});\r\n\r\n\tTi.Media.showCamera({\r\n\t\tsuccess:function(event) {\r\n\t\t\twin.close();\r\n\t\t},\r\n\t\tcancel:function() {\r\n\t\t\twin.close();\r\n\t\t},\r\n\t\terror:function(error) {\r\n\t\t\tvar a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n\t\t\tif (error.code == Titanium.Media.NO_CAMERA) {\r\n\t\t\t\ta.setMessage('Please run this test on device');\r\n\t\t\t} else {\r\n\t\t\t\ta.setMessage('Unexpected error: ' + error);\r\n\t\t\t}\r\n\t\t\ta.show();\r\n\t\t},\r\n\t\tshowControls:false,\t// don't show system control\r\n\t\tautohide:false \t// tell the system not to auto-hide and we'll do it ourself\r\n\t});\r\n\r\n\treturn win;\r\n}\r\n\r\n(function(){\r\n\tvar tabGroup = Ti.UI.createTabGroup({\r\n\r\n\t});\r\n\r\n\tvar tab = Ti.UI.createTab();\r\n\tvar rootWindow = RootWindow(tab);\r\n\ttab.setWindow(rootWindow);\r\n\r\n\ttabGroup.addTab(tab);\r\n\r\n\ttabGroup.open();\r\n})();\r\n{code}\r\n\r\nh4. Desired Result\r\nThe black bar should not be shown when showControls property is set to false. The cameraView should fill up the whole screen.\r\nlink:\r\nhttp://stackoverflow.com/questions/2674375/uiimagepickercontroller-doesnt-fill-screen\r\n", "attachment": [], "flagged": false, "summary": "iOS: CameraView: showControls: false leaves a black bar across bottom of screen", "creator": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium: 2.1.0GA, iOS: 5", "comment": { "comments": [ { "id": "209365", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "showControls=false should be used with overlay property (Otherwise the camera is unusable). That will automatically set a full screen transform for iPhone.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T12:30:16.000+0000", "updated": "2012-07-25T12:30:16.000+0000" }, { "id": "209646", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "thank you for clarifying, I will tell the customer", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T11:32:30.000+0000", "updated": "2012-07-26T11:32:30.000+0000" }, { "id": "209991", "author": { "name": "imarkovi", "key": "imarkovi", "displayName": "Ivan Markovic", "active": true, "timeZone": "Europe/London" }, "body": "Actually it still causes a problem if you add an overlay. If you look at the ARTi code (published through Appcelerator) you will see it working perfectly but in the code I supplied it does not...", "updateAuthor": { "name": "imarkovi", "key": "imarkovi", "displayName": "Ivan Markovic", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-26T17:14:05.000+0000", "updated": "2012-07-26T17:14:05.000+0000" }, { "id": "209996", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Where is the code you supplied that has an overlay in it? I will look into this", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T17:29:02.000+0000", "updated": "2012-07-26T17:29:02.000+0000" }, { "id": "210462", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ivan, please link the code that you provided as it is not available through this bug ticket. Here is a link to one of my gists in which you can see a full screen camera using an overlay (https://gist.github.com/3183771). I took a look at the ARTi source code as well, which uses also uses an overlay. Please review mine/the ARTi code to see how to successfully implement an overlay. If you need any help with this please feel free to open a ticket. ", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-30T10:34:28.000+0000", "updated": "2012-07-30T10:34:28.000+0000" }, { "id": "210522", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as it is invalid. showControls: false should only be used when an overlay is implemented", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-30T11:40:46.000+0000", "updated": "2012-07-30T11:40:46.000+0000" }, { "id": "327578", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-10T07:26:55.000+0000", "updated": "2014-10-10T07:26:55.000+0000" }, { "id": "344525", "author": { "name": "torlanco", "key": "torlanco", "displayName": "Francisco Tirado", "active": true, "timeZone": "America/Santo_Domingo" }, "body": "This is also happening to me in an iPhone 6+\r\n\r\n{code:title=Bar.javascript|borderStyle=solid}\r\n\r\nvar overlayView = Ti.UI.createView({\r\n width: Ti.Platform.displayCaps.platformWidth,\r\n height: Ti.Platform.displayCaps.platformHeight\r\n});\r\n\r\nvar shootButton = Ti.UI.createButton({\r\n backgroundColor:'red',\r\n title:'shoot me',\r\n width:200,\r\n height:40\r\n});\r\n\r\noverlayView.add(shootButton);\r\n\r\n Titanium.Media.showCamera({\r\n success:function(event) {\r\n Ti.API.debug('Our type was: '+event.mediaType);\r\n // event.media;\r\n },\r\n cancel:function() {},\r\n error:function(error) {\r\n alert('Please run this test on device');\r\n },\r\n saveToPhotoGallery:false,\r\n mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],\r\n autohide:false,\r\n showControls:false,\r\n overlay:overlayView\r\n });\r\n\r\n };\r\n\r\nshootButton.addEventListener('click', function() {\r\n Ti.Media.takePicture();\r\n});\r\n{code}\r\n\r\nI am getting a black bar where the controls used to be.\r\n\r\nIm using 3.5.0 GA", "updateAuthor": { "name": "torlanco", "key": "torlanco", "displayName": "Francisco Tirado", "active": true, "timeZone": "America/Santo_Domingo" }, "created": "2015-02-27T02:34:38.000+0000", "updated": "2015-02-27T02:34:38.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }