Made barcode generator work for iOS 5/6

Hi R0CKSTAR,

I needed to support generation of barcodes on iOS 5/6, so I made some some changes and tested it on iOS 5.1, 6 and 7.

Regards,

André