Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
Hi,

I use the below code for scrolling the view

-(void)textFieldDidBeginEditing:(UITextField *)textField {
if( textField == textfield ) {
CGRect rc = [textField bounds];
UIScrollView* v = (UIScrollView*) self.view ;
rc = [textField convertRect:rc toView:v];
CGPoint pt = rc.origin ;
pt.x = 0 ;
pt.y=40;
[v setContentOffset:pt animated:YES];
[textfield becomeFirstResponder];
}

it scroll the page up,

1)I want to scroll down after enter the text in the text box.

Can anybody please tell me the code for scrolling down?
Regards
judy
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.