Click here to Skip to main content
15,900,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am novince to XCode.. how to make view animation transitions in the above code..., so as to move to next view continuously...im using this function to create a game in which background image keeps on moving .!

C#
-(IBAction) displayView:(id) sender{
secondViewController = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle:nil];
[UIView beginAnimations:@"sliding view" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
[self.view addSubview:secondViewController.view];
[UIView commitAnimations];


thanks in advance :):)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900