Question: I have a **UITextView** added on my UIView programmatically. The **textview** added is not editable, it is just to display some data. The data displayed in the textview is getting from array.The no of the textviews are same as texts which **I** Stored in **Array**.Textview is displaying from start to end one by one.I need to set the postion of textview one by one means first textview come and set at some postion,second will be set as just before first **textview**,third will be just before on second and so on.. **Note**: Something like using **Animation**. suppose one **textview** come from top and it stops at Y postion at 250 then next **textview** will set at just before that..it cant come upto 250 of Y postion. and so on. I have no clue how to do this. Please give me some ideas.

Answer: 
Don't Consider the array and the `UITextView` data.... its fot temporary..

```
NSMutableArray *array = [[NSMutableArray alloc]initWithObjects:@"One",@"Two",@"three",@"Four",@"Five",@"Six",@"Seven",@"Eight",@"Nine",@"Ten", nil];

for(int i=0;i<[array count];i++) {
    UITextView *textView = [[UITextView alloc]init];
    [textView setFrame:CGRectMake(20, 20*i+height, 200, height)];
    [textView setBackgroundColor:[UIColor redColor]];
    [textView setText:[array objectAtIndex:i]];
    [self.view addSubview:textView];
}

```
hey mate then take one scrollview and in it just set all textview with its `ContentSize` like bellow

here i give an example ,

**Note:** this is just example here take one `UIScrollView` and give name scrview and after add your all this `UITextField` in it.

you add this code after you add data in textfield 

```
 txt1.frame = CGRectMake(txt1.frame.origin.x,    txt1.frame.origin.y, txt1.frame.size.width, txt1.contentSize.height); 

float txtscreen1 = txt1.frame.origin.y + txt1.contentSize.height + 10;

txt2.frame = CGRectMake(txt2.frame.origin.x, txtscreen1, txt2.frame.size.width, txt2.contentSize.height);

float txtscreen2 = txt2.frame.origin.y + txt2.contentSize.height + 10;

txt3.frame = CGRectMake(txt3.frame.origin.x, txtscreen2, txt3.frame.size.width, txt3.contentSize.height);

//.....and so on to 10

float txtscreen10 = txt3.frame.origin.y + txt3.contentSize.height + 10;

txt10.frame = CGRectMake(txt10.frame.origin.x, txtscreen10, txt10.frame.size.width, txt10.contentSize.height);

float scrollviewscreen = txtscreen10.frame.origin.y + txtscreen10.frame.size.height + 20;
scrview.contentSize=CGSizeMake(320, scrollviewscreen);//take scrollview 

```

i hope this help you....

:)