Question

Now I need to add cameraIris' Shutter Open effect when switch from one view to another view.

enter image description here

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top