在我正在制作的应用程序中,我试图让一个按钮从屏幕外移动到屏幕上。我不确定如何使按钮在屏幕外开始移动,但我知道一旦我解决了这个问题,我可以使用下面的代码实现:
此外,在行
[UIView beginAnimation:@"animate" context: nil];
[UIView setAnimationDuration:3];
self.myButton.frame = CGRectMake (20, 100, 40, 80);
//Other animations
[UIView commitAnimations];
此外,在行
[UIView beginAnimation:@"animate" context:nil];
中,context参数是否要求CGContextRef?