开发者

how to go one view from another view using with flip animation in iPhone

I am flip animation to go from one view to another and animation is working properly but when i am using button action on that view that time application is getting crash.

Please help me out t开发者_开发问答o solve this problem.

my code is:

Abtsk1 *secondViewController = [[Abtsk1 alloc] 
                        initWithNibName:@"Abtsk1" 
                        bundle:nil];

[UIView beginAnimations:@"flipping view" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown 
                       forView:[[self navigationController] view] cache:YES];

[self.view addSubview:secondViewController.view];
[UIView commitAnimations];

Thanks Kunal

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜