小编Fre*_*XxX的帖子

我想在iPad上刷一个UIImageview,我该怎么做?

我想UIImageView多次闪光.

目前我不知道该怎么做.

实际代码:

-(void)arrowsAnimate{
    [UIView animateWithDuration:1.0 animations:^{
        arrow1.alpha = 1.0;
        arrow2.alpha = 1.0;
        arrow3.alpha = 1.0;
        NSLog(@"alpha 1");
    } completion:^(BOOL finished){        

        [self arrowsAnimate2];

    }];
}

-(void)arrowsAnimate2{
    [UIView animateWithDuration:1.0 animations:^{
         arrow1.alpha = 0.0;
         arrow2.alpha = 0.0;
         arrow3.alpha = 0.0;
         NSLog(@"alpha 0");
    } completion:^(BOOL finished){;}];
}
Run Code Online (Sandbox Code Playgroud)

后来我称之为:

for (int i = 0;i < 10; i++){
[self arrowsAnimate]; }
Run Code Online (Sandbox Code Playgroud)

这给了我10x alpha 1,然后是10x alpha 0.在中间我们只看到一个动画.有什么建议?

谢谢.

objective-c uiview ipad

9
推荐指数
1
解决办法
5766
查看次数

标签 统计

ipad ×1

objective-c ×1

uiview ×1