我正在使用这段代码来创建像动画一样解锁的幻灯片,但我无法让它从从右到左动画化。如何让它从右开始并向左动画?-(void)slideToCancel{CALayer*maskLayer=[CALayerlayer];//Maskimageendswith0.15opacityonbothsides.Setthebackgroundcolorofthelayer//tothesamevaluesothelayercanextendthemaskimage.maskLayer.backgroundColor=[[UIColorcolorWithRed:0.0fgreen:0.0fblue:0