views:

600

answers:

2
FlipView *fl=[[FlipView alloc] initWithNibName:@"FlipView" bundle:nil];
//fl.view.frame=CGRectMake(50.0,50.0, 300.0,300.0);
fl.delegate=self;
fl.modalTransitionStyle=UIModalTransitionStyleCrossDissolve;
fl.imageName=aCategoryDtl.Tip_Image;
[self presentModalViewController:fl animated:YES];


In above code, A Complete New View Controller is added to screen.

Instead of that, I need to display only single view(UIView) - Not View controller.(UIViewController)

How to implement that?

Thanks in advance for helping me.

+2  A: 

The comment is correct, you do not display a view controller, u display that viewcontrollers views, viewControllers are used to manage views, now what i imagine you want is a way to switch from view to view with transitions in a single view controller, there is a sample project called ViewTransition here https://developer.apple.com/iphone/library/samplecode/ViewTransitions/ it contains a view that you can use to switch from view to view with transitions, it might help you

Daniel
@Daniel - Sir, You understood me.
sugar
That's a great example. Thanks a lot.
sugar
A: 

how you run the Dissolve effect but for 2.2.1. I can run on 3.0 but in 2.2.1 UIModalTransitionStyleCrossDissolve doesn't run

thanks