我想旋轉圓形圖像像時鐘明智的4按鈕(如imageview子視圖)。它使用核心動畫的按鈕旋轉,但是當我在任何按鈕,它不瀏覽其他頁面點擊,請幫我UIImageView與4個按鈕
在此先感謝
這裏我給我的代碼
CABasicAnimation *fullRotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
fullRotation.fromValue = [NSNumber numberWithFloat:0];
fullRotation.toValue = [NSNumber numberWithFloat:((360*M_PI)/180)];
fullRotation.duration = 150.0f;
fullRotation.repeatCount = 20.0;
[self.image_Wheel addSubview:self.btn1];
[self.image_Wheel addSubview:self.btn2];
[self.image_Wheel addSubview:self.btn3];
[self.image_Wheel addSubview:self.btn4];
[self.image_Wheel.layer addAnimation:fullRotation forKey:@"360"];
請提供更多代碼來跟蹤問題。在代碼中添加按鈕功能。 – svrushal
我們希望在任何按鈕上看到導航代碼 – BhushanVU
您的圖片位於按鈕上方嗎? – DivineDesert