I am working on Barcode scanner. For that I need to check whether device has Autofocus feature support or not. How to check this? I have following device to run and test this AutoFocus support. iPad iPad 2 iPhone 3G iPhone 3GS iPhone 4 iPhone 4S iPod 1st Generation iPod 4th Generation any code snippet would be helpful for me.