使UIImageView实现幻灯片播放器的效果。
几个属性:
animationImages=(类型为NSArray的存有若干图片的数组)
animationDuration=X秒 。函数说明中提示 description: The amount of time it takes to go through one cycle of the images. 意思就是说这里设置的X秒是轮播完一轮图片所花的时间。比如要播放的图片共有5张,你设置 animationDuration=5 那就是一秒放一张图片,5秒播放完一轮。
animationRepeatCount=X次 。顾名思义,就是要播放几轮。
启动 :
调用方法 [ X starAnimating]