2012-02-07 15 views
0

私はfirstviewcontrollerを持っていて、私はsecondviewcontrollerを呼びたいと思っています。このsecondviewcontrollerがclearcolorと半trasparentのImageViewのとXIBでそのビューを持っている、そして私は私がfirstviewcontroller表示されていない、私は私のsecondviewcontrollerの下でそれを呼び出すときに、このseconviewcontrollerIOS:透明な色のviewcontroller

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

を呼び出したときに下firstviewcontroller見たいですしかし、すべての白...なぜ?

答えて

1

最初のビューコントローラを表示するには、presentModalViewControllerを使用せずに、2番目のビューをサブビューとして追加してみてください。モーダルプレゼンテーションが問題です。モーダルアニメーション効果を実現するには、手動でアニメーションを実装する必要があります。がんばろう!

0

presentModalViewControllerのため::

代わりにnavigationControllerを使用してください。