2010-08-03 78 views
-1

我当前使用几个视图控制器,并在各地设立我的应用程序转换:帮助!将图像添加到UIViewController转换! :S

ViewController2 *controller2 = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil]; 
controller2.modalTransitionStyle = UIModalTransitionStyleCoverVertical; 
[self presentModalViewController:controller2 animated:YES]; 
[controller2 release]; controller2 = nil; 

我真正想要的是垂直转换时的时候,我想泡的图像旅行了屏幕过渡。无论如何将图像添加到这些转换。如果没有,我想知道如何创建这种效果,因为我之前在应用程序中看到过它。

由于事先

亚当

+0

[添加图像到视图控制器转换]可能的重复(http://stackoverflow.com/questions/3395124/adding-an-image-to-view-controller-transition) – Vladimir 2010-08-03 14:09:35

+0

请不要问同样的问题两次 – Vladimir 2010-08-03 14:09:52

回答

0

简单的方法是添加一个UIImageView视图的大小进行动画处理,设置它作为这一观点的子视图的气泡图像。然后,您可以在viewDidUnload中或适当的代码中将其删除。