Sridhar Bollam
Sridhar Bollam

Reputation: 1204

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.

Upvotes: 1

Views: 2666

Answers (2)

Kenny Winker
Kenny Winker

Reputation: 12087

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

Upvotes: 2

Ian Henry
Ian Henry

Reputation: 22403

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

Upvotes: -1

Related Questions