我正在制作 iPad 应用程序,当我开始单击 beginEditing 时要在其中显示动画,这是我的代码。
-(void)textFieldDidBeginEditing:(UITextField *)textField
{
NSLog(@"This is calling");
[self showAnimationPests];
}
-(void) showAnimationPests
{
[UIView animateWithDuration:0.5
animations:^{
subView.frame = CGRectMake(0,-200,1024,748);
}];
}
它显示正在调用的日志,但视图没有移动。