How to display barcode in iPhone - 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

Related

iphone map pins for icons replacement

I am trying to build a map based app on iphone. Can the standard pins be replaced by other similarly sized icons?
Yes they can. Set the image property of the MKAnnotationView.

How can i make this kind of View (from iPhone) in Android?

I am porting an app from iPhone to Android and I was wondering what the best way was to make this screen in Android?
The places where it sais "optioneel" and where the phonenumbers are must be editable like this:
This is what I've come up with so far:
So how can I make these 'editable listview' things in Android?
I'm a specialist in porting iPhone apps to Android. I have my own library of iOS-style widgets for Android. I can't give you source code but I'll give you a clue: use EditText for the editable ones, obviously with a custom background nine-patch. You can override dispatchDraw() to draw the label on the left, and set the left padding so it doesn't clash with the user-provided text.
I think you can use a normal EditText element and apply a plain white images as background.
One way would be to create a TableView and then add a Label on the left hand column and a TextView / EditText in the right hand column. Correctly styled this would match the form and function of the iPhone app.

How to embed links in a Quartz PDF View

I am using Quartz to display a PDF if my iPad app rather than a webview as I dont link the borders and drop shadow effects the webview adds.
Can I still use embedded links in the PDFs? If so do I need to do anything special or will they just work?
See this question:
Get PDF hyperlinks on iOS with Quartz

how to use custom font in iphone application

how to use custom font in iphone application?
i need to use in custom font in my iphone / ipad appliaction. Can i embed custom font in my application?
Check this:
http://www.perfectline.co.uk/blog/uiappfonts-custom-fonts-with-the-iphoneipad-3-2-sdk
I am quite sure I saw a sample in WWDC sessions, you could look also the videos ;)

iPhone Text and Image Display

I am creating a ebook iPhone application and it consists of a bunch of pages.
My problem is some of the pages consists of images.
Is there a way to put the text and image in the same component.
What would be the best way to acheive this?
Thanks
You can't embed an image in a UITextField, nor the more appropriate UITextView. Consider turning your text into HTML, and using a UIWebView to display it. This would allow you to easily embed images into the text.