在iPhone SDK中创建自定义活动指示器?

时间:2023-01-22 17:09:12

I haven't found any references to apps that use a custom activity indicator -- would be an animated GIF old-school -- in place of the Apple-supplied spinning wheels. Are there facilities to do this (or subclass UIActivityIndicatorView), do developers roll their own UIViews, or does this violate HIG?

我没有找到任何使用自定义活动指示器的应用程序的引用 - 将是一个动画GIF旧学校 - 取代Apple提供的纺车。是否有设施(或UIActivityIndi​​catorView的子类),开发人员是否推出自己的UIViews,或者这是否违反了HIG?

Thanks, IPD

3 个解决方案

#1


Yeah, as Ed Marty mentioned UIImageView supports the animation of images. So look at this custom activity indicator tutorial to get an inspiration how you could achieve this in a very simple way.

是的,正如Ed Marty所说,UIImageView支持图像动画。因此,请查看此自定义活动指示器教程,以获得灵感,了解如何以非常简单的方式实现此目的。

Cheers

#2


The UIImageView class supports animation. Try that.

UIImageView类支持动画。试试吧。

#3


Or you can use an animation to rotate the layer. Here is an interesting post about how to do that :

或者您可以使用动画来旋转图层。这是一篇关于如何做到这一点的有趣帖子:

http://www.cimgf.com/2008/10/25/core-animation-tutorial-slider-based-layer-rotation/

Hope this helps.

希望这可以帮助。

Thierry

#1


Yeah, as Ed Marty mentioned UIImageView supports the animation of images. So look at this custom activity indicator tutorial to get an inspiration how you could achieve this in a very simple way.

是的,正如Ed Marty所说,UIImageView支持图像动画。因此,请查看此自定义活动指示器教程,以获得灵感,了解如何以非常简单的方式实现此目的。

Cheers

#2


The UIImageView class supports animation. Try that.

UIImageView类支持动画。试试吧。

#3


Or you can use an animation to rotate the layer. Here is an interesting post about how to do that :

或者您可以使用动画来旋转图层。这是一篇关于如何做到这一点的有趣帖子:

http://www.cimgf.com/2008/10/25/core-animation-tutorial-slider-based-layer-rotation/

Hope this helps.

希望这可以帮助。

Thierry