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.
Asked
Active
Viewed 2,639 times
2 Answers
2
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

Community
- 1
- 1

Kenny Winker
- 11,919
- 7
- 56
- 78
-1
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:

Ian Henry
- 22,255
- 4
- 50
- 61
-
If you don't understand what that means, you need to learn a little more about UIKit. Here's a good starting point: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html – Ian Henry Dec 11 '09 at 18:05