/*enter Source Image loading*/
- (void)enterSourceImageLoadWithPath:(NSArray*)pathArray
{
//dataArray,index
ShotBulletViewController* bulletCtrl = [[ShotBulletViewController alloc] initWithImageArray:pathArray
currentIndex:0];
[bulletCtrl setWaitViewAngle:180.0f rotation:3.0f];
bulletCtrl.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentViewController:bulletCtrl animated:YES completion:^{}];
[bulletCtrl release];
}
转载自:http://www.cocoachina.com/newbie/tutorial/2012/1016/4928.html
页面切换效果设置:
controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:controller animated:YES];
可供使用的效果:
UIModalTransitionStyleCoverVertical
UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl
恢复之前的页面:
[self dismissModalViewControllerAnimated:YES];