Cocoa Touch Barcodes
生成条码的iOS类库。
开发者注:测试很简单。
self.view.backgroundColor = [UIColor whiteColor];
UIImage *image = [UIImage imageFromBarcode:[[NKDEAN13Barcode alloc] initWithContent:@“6917878002446”]];
UIImageView *imageview = [[UIImageView alloc] initWithImage:image];
imageview.frame = CGRectMake(10, 10, image.size.width,image.size.height*2);
[self.view addSubview:imageview];
[imageview release]; [Code4App.com]
评论