How to create a UIlabel using a string value in iPhone?

Ooooooooopsss it seems I didn't understand your question.

I am guessing that you want to get to those labels later, so just use tags. By the way if you don't accept answers, and feedback the users for their efforts you are not going to get answers. If you didn't know that it's time to learn.

Good day shani.

1. Though I will say that instead of tag using dictionary with the texts from the array as the key will be a better solution. As I have already specified in the comment of the question, I don't have enough energy to explain in details what I mean.

– taskinoor Dec 26 '10 at 12:26.

This is not so hard: UILabel *theobjectretrievedfromarray = UILabel alloc initWithFrame: CGRectMake(x, y, width, height); theobjectretrievedfromarry. Text = myarray objectAtIndex: i; and that's about it. Easy Breasy.

For cgrectmake, x, y, width and height are what you want your label's frame to be. For myarray objectAtIndex: i, I would be the index of the string in the array that you want to use. – Fear Dec 26 '10 at 12:00.

Use ObjectatIndex: UILabel *requiredobj=arrayName objectAtIndex:0; requiredobj=UILabel allocinitWithFrame:CGReckMake(0,0,13,50); .. .. do not forget to release the labels.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions