Tutorial :how to create numbers(images) in twitter format?



Question:

I am developing a list of buttons for a puzzle game where i want to place images on these buttons with good texture on it like what we see just like in twitter format.is it possible to do this? if so how?

Thanks,


Solution:1

UIButton allows you to set the background for a button

[myButton setBackgroundImage:myUIImage forState:UIControlStateNormal];

however, its not clear from your question if you really mean a button, or what a twitter format is!


Solution:2

From your comment on the other answer, "I want to know weather is it possible to create images with numbers in that particular format just as we see in twitter site.":

I'm going to take a guess that you mean the number "buttons" in the top right corner of Twitter: twitter format? http://img412.imageshack.us/img412/6308/twitterbuttons.png

If so, these aren't images. They're numbers. It's HTML. Here is the HTML for one button:

<a href="/following" id="following_count_link" class="link-following_page" rel="me" title="See who you’re following">    <span id="following_count" class="stats_count numeric">29 </span>    <span class="label">Following</span>  </a>  

Sorry if this was a wrong guess; just taking a stab at the dark.


Solution:3

The link http://www.textually.org/textually/archives/2010/04/09/twitter.jpeg you supply points to the word Twitter. It is in the font Pico. The iphone does not have Pico as a built in font, so if you want to write (well draw) in that font, you need to make an image with all the letters you may need, then pick them using an offset into the image.

However, I'm still not convinced this is an answer to your question!


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »