2012-02-07 105 views
0

我有一個firstviewcontroller,我想調用secondviewcontroller;這secondviewcontroller有其與clearcolor和半trasparent imageview的廈門國際銀行視圖,然後我想看看firstviewcontroller當我把這個seconviewcontrollerIOS:清晰顏色的viewcontroller

SecondViewController *secondViewController = [[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil]; 
    [self presentModalViewController:secondViewController animated:YES]; 
    [secondViewController release]; 

然後當我把它稱爲我的secondviewcontroller下,我沒有看到firstviewcontroller下,但所有的白色......爲什麼?

回答

1

爲了能夠看到第一個視圖控制器,嘗試添加第二個作爲子視圖,而不是使用presentModalViewController。模態表示是問題。如果你想實現模態動畫效果,你將不得不手動實現動畫。祝你好運!

0

由於presentModalViewController的::

使用navigationController來代替。