There are two separate transition effect cameraIrisHollowClose
and cameraIrisHollowOpen
in addition to cameraIris
, so you could have two separate animations, one for opening and one for closing, triggered whenever you need them.
How to display 'cameraIris' Shutter Open effect from middle of the view to out side
-
13-04-2022 - |
Question
Now I need to add cameraIris' Shutter Open effect when switch from one view to another view.
I used for navigation transactions as follows, using http://iphonedevwiki.net/index.php/CATransition
CATransition *transition = [CATransition animation];
transition.duration = 0.8;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
//cameraIris Effect
[transition setType:@"cameraIris"];
transition.delegate = self;
[self.navigationController.view.layer addAnimation:transition forKey:nil];
[self.navigationController pushViewController:NextView animated:YES];
But now it was closes from out side to middle i need to open this effect from middle to out side / insted of close
can any one please help me
thanks in advance
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow