I have a scrollView and i want to scroll it automatically when i select an textField  

(i am filling a form here)  

i am using following method to scroll it

```
- (void)textFieldDidBeginEditing:(UITextField *)textField 
{   
[scrollView setContentOffset:CGPointMake(0,50*(textField.tag-1))];
}

```

Now the problem is that i have more than 10 text fields and when i reached to the seventh textField the scrollView scrolls more .
I also tried to print the CGPointMake()'s values...and it is showing correct values..but the scroller goes beyond the range what is expected..
Look at following images

The following 2 images showing control on textFields tag <7 

![enter image description here](https://i.stack.imgur.com/LO89C.png)
![enter image description here](https://i.stack.imgur.com/NwmNr.png)

But when control reaches to 7th textField it scrolls more

![enter image description here](https://i.stack.imgur.com/Wr1K9.png)

and after this it goes beyond bounds.

This problem occurs only when i move from one textFields to another without pressing that return button(i mean with `resignFirstResponder`).But when i press that return button and then go to the next field then all works fine.

Can anyone suggest where should be the problem..?