我试图在viewDidLoad和viewDidAppear中添加动画,但是它没有起作用:
为什么?
- (void)viewDidAppear:(BOOL)animated{
[UIView beginAnimations:@"transition" context:NULL];
[UIView setAnimationTransition:110 forView:self.view cache:YES];
[UIView commitAnimations];
}
为什么?