I download ZBarSDK 1.2 in http://zbar.sourceforge.net/download.html It works well when I set the sourceType of ZBarReaderViewController as UIImagePickerControllerSourceTypeCamera. But when I set the sourceType as UIImagePickerControllerSourceTypePhotoLibrary or UIImagePickerControllerSourceTypeSavedPhotosAlbum,the app crashed and I got the error as follow:
2012-05-28 17:23:03.476 Wow[4137:10703] * Assertion failure in -[ZBarReaderViewController setSourceType:], /Users/spadix/zbar/hg/sdk/iphone/ZBarReaderViewController.m:650 2012-05-28 17:23:03.626 Wow[4137:10703] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to set unsupported value (1) for sourceType property'
I have google this issue but can't find a solution.Can anybody tell me how to solute this issue?Dose version 1.2 only support UIImagePickerControllerSourceTypeCamera?Dose the source witch I download is bad?
Thanks.