EAN13BarcodeGenerator
一个简单高效的解决方案,用于为iOS应用程序生成EAN13条码
示例
要运行示例项目,请先克隆仓库,然后从示例目录中运行pod install
。
#import "BarCodeView.h"
#import "BarCodeEAN13.h"
BarCodeView *barCodeView = [[BarCodeView alloc] initWithFrame:kBarCodeFrame];
[self.view addSubview:barCodeView];
[barCodeView setBarCode:GetNewRandomEAN13BarCode()];
import EAN13BarcodeGenerator
let barCodeView = BarCodeView(frame: CGRect(x: 103.0, y: 155.0, width: 113.0, height: 100.0))
view.addSubview(barCodeView)
barCodeView.barCode = GetNewRandomEAN13BarCode()
如果您需要其他功能,请与我联系。
如果您有任何问题,请随时与我联系。
祝您有个愉快的一天! =)
要求
iOS 8+
安装
EAN13BarcodeGenerator可通过CocoaPods获取。要安装它,只需要将以下行添加到Podfile:
pod 'EAN13BarcodeGenerator'
作者
Alexey Strokin, [邮箱地址隐藏]
许可证
EAN13BarcodeGenerator 在 MIT 许可证下可用。详情请参阅 LICENSE 文件。