QRCodeGenerator.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // QR Code Generator - generates UIImage from NSString
  3. //
  4. // Copyright (C) 2012 http://moqod.com Andrew Kopanev <andrew@moqod.com>
  5. //
  6. // Permission is hereby granted, free of charge, to any person obtaining a copy
  7. // of this software and associated documentation files (the "Software"), to deal
  8. // in the Software without restriction, including without limitation the rights
  9. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  10. // of the Software, and to permit persons to whom the Software is furnished to do so,
  11. // subject to the following conditions:
  12. //
  13. // The above copyright notice and this permission notice shall be included in all
  14. // copies or substantial portions of the Software.
  15. //
  16. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  17. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  18. // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
  19. // FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  20. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. // DEALINGS IN THE SOFTWARE.
  22. //
  23. #import <Foundation/Foundation.h>
  24. @interface QRCodeGenerator : NSObject
  25. + (UIImage *)qrImageForString:(NSString *)string imageSize:(CGFloat)size;
  26. @end