开发者

How to display barcode in iPhone

I need to show barcode string(example :1001847983) into barcode image in A UIView. Does the iPhone SDK supports barcode fonts? I don't need reading the barcode, 开发者_运维知识库I just want to show the string in barcode lines.


Learn how to add custom fonts to your app

Can I embed a custom font in an iPhone application?

Then find yourself a barcode font

http://www.google.com/search?q=barcode+fonts


No, there is no built-in way to display barcodes. You'll have to create a custom view to convert and display them yourself. Simplest way would probably be to make each black line an opaque, empty UIView and add a lot of them with the correct frames to a UIView subclass.

Built-in iPhone fonts are here:

http://daringfireball.net/2007/07/iphone_fonts

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜