我有一个firstviewcontroller,我想调用secondviewcontroller;这个secondviewcontroller在xib中有一个clearcolor和一个半透明的imageview的视图,然后我想在我调用这个seconviewcontroller时看到firstviewcontroller
SecondViewController *secondViewController = [[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil];
[self presentModalViewController:secondViewController animated:YES];
[secondViewController release];
然后当我在我的secondviewcontroller下调用它时,我没有看到firstviewcontroller,但是所有的白色......为什么?
答案 0 :(得分:1)
为了能够看到第一个视图控制器,尝试添加第二个作为子视图,而不是使用presentModalViewController。模态演示是问题所在。如果您希望实现模态动画效果,则必须手动实现动画。祝你好运!
答案 1 :(得分:0)
因为presentModalViewController ::
改为使用navigationController。