I want to flash an UIImageview on the iPad, how do I do that?

后端 未结 4 1934
自闭症患者
自闭症患者 2021-02-08 19:10

I want to let a UIImageView flash several times.

Currently I don\'t know how to do that.

Actual code:

-(void)arrowsAnimate{
    [UIVi         


        
4条回答
  •  被撕碎了的回忆
    2021-02-08 19:58

    Above blinking may not work when your app go background and foreground at time of blinking. Instead of these you can take a transparent image and your actual image and animate your ImageView

    UIImageView *imageview=[UIImageView new];
    imageview.animationDuration=1;
    imageview.animationImages = your array of images;
    [imageview startAnimating];
    

提交回复
热议问题