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
t 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
I use the below code for scrolling the view
-(void)textFieldDidBeginEditing
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
[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