I have a scrollView with some text fields. when the keyboard show, the scroll view goes. When the keyboard is hidden the scroll view goes down. It works correctly. The only thing is that the keyboard takes 0.5 seconds to come up, so during that time I can see the white background. I would like to set a duration to my scroll3 to 0.5.
-(void)textFieldDidBeginEditing: (UITextField *)textField {
NSLog(@"sowing keyboard");
scroll3.frame = CGRectMake(0, -200, 768, 960);
[scroll3 scrollRectToVisible:scroll3.frame animated:YES];
}
-(void)textFieldDidEndEditing: (UITextField *)textField{
NSLog(@"hiding keyboard");
scroll3.frame = CGRectMake(0, 44, 768, 960);
}
How can I?? I tried [scroll3 setAnimationDuration: 0.5]; but it does not work!!! Help ME Please!!! Thanks a lot.
May be this –