Last active
August 29, 2015 14:04
-
-
Save Amimul100/dcad8221bf2cacb35ab0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi, We have tested the issue, and encountered the same problem. | |
| h5. TESTING ENVIRONMENT | |
| Ti CLI 3.3.0 | |
| Titanium SDK: 3.3.0.GA and 3.2.X.GA | |
| iPhone and iPad Device | |
| h5. TEST CODE | |
| {code:title=app.js|borderStyle=solid} | |
| var Barcode = require('ti.barcode'); | |
| Barcode.allowRotation = true; | |
| Barcode.displayedMessage = ''; | |
| Barcode.useLED = true; | |
| var window = Ti.UI.createWindow({ | |
| backgroundColor : 'white' | |
| }); | |
| var scrollView = Ti.UI.createScrollView({ | |
| contentWidth : 'auto', | |
| contentHeight : 'auto', | |
| top : 0, | |
| showVerticalScrollIndicator : true, | |
| layout : 'vertical' | |
| }); | |
| var scanCode = Ti.UI.createButton({ | |
| title : 'Scan Code', | |
| width : 200, | |
| height : 60, | |
| top : 20 | |
| }); | |
| scanCode.addEventListener('click', function() { | |
| Barcode.capture({ | |
| animate : true, | |
| showCancel : false, | |
| showRectangle : false, | |
| keepOpen : true | |
| }); | |
| }); | |
| scrollView.add(scanCode); | |
| window.add(scrollView); | |
| window.open(); | |
| {code} | |
| {code:title=tiapp.xml|borderStyle=solid} | |
| <iphone> | |
| <orientations device="iphone"> | |
| <orientation>Ti.UI.PORTRAIT</orientation> | |
| </orientations> | |
| <orientations device="ipad"> | |
| <orientation>Ti.UI.PORTRAIT</orientation> | |
| </orientations> | |
| </iphone> | |
| <modules> | |
| <module platform="iphone">ti.barcode</module> | |
| </modules> | |
| {code} | |
| h5. STEP TO TEST | |
| - Create a new project | |
| - Update "app.js" file with "app.js" code segment given above. | |
| - Download the barcode module zip file [ti.barcode-iphone-1.8.3.zip|https://github.com/appcelerator/titanium_modules/blob/master/barcode/mobile/ios/ti.barcode-iphone-1.8.3.zip?raw=true] | |
| - Extract the zip file, copy the module folder to your app | |
| - Include "tiapp.xml" code segment given above to the "tiapp.xml" file | |
| - Run the app in iPhone or iPad device. | |
| - Touch "scan Code" to see the barcode scanning screen. | |
| h5. OBSERVED RESULT | |
| Rotating the device is causing the rotation of barcode scanning screen, even though the orientation was fixed to portrait. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment