{"issue":{"state":"closed","created_at":"2011-11-25T23:23:45Z","updated_at":"2011-11-28T22:40:15Z","user":{"gravatar_id":"d7334686f6d64cadd695c5553949d296","id":1220881,"url":"https://api.github.com/users/oswell","avatar_url":"https://secure.gravatar.com/avatar/d7334686f6d64cadd695c5553949d296?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"oswell"},"comments":8,"body":"Updated to allow the user to define a xib file for the interface.  The name of the xib file can then be passed into the scan method.  In the example below, the actual xib file is called BarcodeOverlay.xib.  Also updated the cancel method to be linkable from within the xib.\r\n\r\n    function scan() {\r\n        window.plugins.barcodeScanner.scan(\r\n        function(result) {\r\n            if (result.cancelled)\r\n            alert(\"the user cancelled the scan\")\r\n            else\r\n            alert(\"we got a barcode: \" + result.text)\r\n        },\r\n        function(error) {\r\n            alert(\"scanning failed: \" + error)\r\n        },\r\n        [\"BarcodeOverlay\"]\r\n        )\r\n    }\r\n","assignee":null,"id":2352823,"labels":[{"name":"iOS","color":"e102d8","url":"https://api.github.com/repos/phonegap/phonegap-plugins/labels/iOS"}],"pull_request":{"patch_url":"https://github.com/phonegap/phonegap-plugins/pull/252.patch","html_url":"https://github.com/phonegap/phonegap-plugins/pull/252","diff_url":"https://github.com/phonegap/phonegap-plugins/pull/252.diff"},"number":252,"title":"Update to allow the iPhone barcode scanner plugin to use a custom xib file for the overlay view.","closed_at":"2011-11-28T20:04:10Z","html_url":"https://github.com/phonegap/phonegap-plugins/issues/252","url":"https://api.github.com/repos/phonegap/phonegap-plugins/issues/252","milestone":null},"action":"created","comment":{"created_at":"2011-11-28T22:40:15Z","updated_at":"2011-11-28T22:40:15Z","user":{"gravatar_id":"4b7fb344f374733efcf61813ccf5d796","id":25117,"url":"https://api.github.com/users/pmuellr","avatar_url":"https://secure.gravatar.com/avatar/4b7fb344f374733efcf61813ccf5d796?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"pmuellr"},"body":"@maxogden by test, I mean adding some code to the existing \"test\" in `phonegap/phonegap-plugins/iPhone/BarcodeScanner/test`.  Which would presumably mean adding a .xib, and then adding some code which makes use of that .xib.","id":2908695,"url":"https://api.github.com/repos/phonegap/phonegap-plugins/issues/comments/2908695"}}