我有一个主详细信息应用程序,当出现详细信息视图并且字符串为空时,我希望它通过UIViewAnimationFlip
. 动画正在工作,但它不断翻转到自身,而不是我启动的视图控制器。任何帮助都会很棒!
- (void)viewDidAppear:(BOOL)animated {
if (masterView.parserURL == nil) {
LoginViewController *login = [[LoginViewController alloc] init];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.8];
[UIView setAnimationTransition:UIModalTransitionStyleFlipHorizontal
forView:self.view
cache:YES];
[self.navigationController presentViewController:login
animated:YES
completion:nil];
[UIView commitAnimations];
}
}