以下代码段打开一个带有动画动作的新页面“ScreenA”:
ScreenA *Acca = [ScreenA alloc];
[UIView beginAnimations:@"flipping view" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown
forView:self.view cache:YES];
[self.view addSubview:Acca.view];
[UIView commitAnimations];
它工作正常,但是如果调用是对页面本身的调用,这意味着文件是 ScreenA 并且我正在调用文件以再次打开文件代码中嵌入的变量的不同值。当对一个页面进行调用时,即使它本身是所有内存都被释放了,还是有可能进行递归调用,构建一堆页面,最终导致手机崩溃?
非常感谢您可能给我的任何帮助。
谢谢