0
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
CGFloat coef = tempCount/20;
while(tempCount >= 0)
{
[imgView setTransform: CGAffineTransformRotate([imgView transform], -1*coef)];
tempCount -=coef;
[NSThread sleepForTimeInterval: 0.09];
}
}
而問題是不是,更新的UIImageView我只循環後的圖像視圖更新圖像。我希望它每0.09秒更新一次。你能提出什麼?感謝名單!while循環運行
你想做什麼?只是逐漸旋轉imageview? – Vladimir 2010-11-02 12:34:31
是的,正好!我想在旋轉屏幕上顯示慢動畫。 – yozhik 2010-11-02 12:39:03