开发者

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

开发者 https://www.devze.com 2023-01-15 05:45 出处:网络
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.

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

精彩评论

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