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