X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=iphone%2FREADME;h=9d6b37b6feb445c93449cd87d62646f044770053;hb=03257a2a9bfc81c356331080dd7c5ee2b4c97ab5;hp=490f906330dfe8de3a1fe89ddf06cb69f7ce6f0a;hpb=13b8738c6ba620c517fd35f532f13294400cfd8d;p=zxing.git diff --git a/iphone/README b/iphone/README index 490f9063..9d6b37b6 100644 --- a/iphone/README +++ b/iphone/README @@ -22,18 +22,22 @@ How to include ZXingWidget in a easy and clean way: application's target. Under the "General" tab you will see a "Direct Dependencies" section. Click the "+" button, select "ZXingWidget", and click "Add Target" - 4. Finally, we need to tell your project where to find the ZXingWidget headers. Open your + 4. Finally, you need to tell your project where to find the ZXingWidget headers. Open your "Project Settings" and go to the "Build" tab. Look for "Header Search Paths" and double-click it. Add the relative path from your project's directory to the "zxing/iphone/ZXingWidget/Classes" directory. Make sure you click the checkbox "recursive path" ! - 5. Ultimately you need to make a tweak so that ZXing actually decodes barcode. In target section, double - click on your project target, and go to the build tab. Look for the "Exported Symbols Files" and - double-click on it. Att the relative path to the exportList files in "/zxing/iphone/ZXingWidget/exportList". - This will tell the linket to actually link with some key classes so that this code registers the necessary - decoders. - - 6. You're ready to go. Just #import from anywhere and it should work ! + 5. You're almost ready to go .. + + 6. #import from a file + + 7. #import for example because you will need to inject a barcode reader into ZXingWidgetController. + + 8. MAKE SURE the file in which you are using the code deader is a .mm because you are now silently including some c++ code. If you don't do so then + the compiler will cry as if it does not find some files ! + + 9. It should work :) + Know issues for above steps to include: ======================================