我掩蓋的圖像是這樣的:的CALayer與旋轉動畫
UIView *maskImage; maskImage = [[UIView alloc] init];
maskImage.backgroundColor = UIColorFromRGB(FTRMaskColor);
maskImage.frame = newFrame;
CALayer *theLayer = [CALayer layer];
theLayer.contents = (id)[[UIImage imageNamed:@"image.png"] CGImage];
theLayer.frame = newFrame;
maskImage.layer.mask = theLayer;
它工作正常,但主要問題是,如果我想旋轉我的iPad,視圖的旋轉動畫或層(I不太確定)不起作用。它沒有動畫旋轉。你能幫忙嗎?
簡單地實現旋轉動畫 - [如何使一個旋轉的動畫(http://stackoverflow.com/questions/6075696/how-to-make-a-rotate-animation) – beryllium