UIView逐渐变亮然后消失,动画

来源:互联网 发布:原来你是这样的网络语 编辑:程序博客网 时间:2024/06/06 01:29

    imaged = [[UIImageViewalloc] initWithFrame:CGRectMake(scrrenW*0.36,self.view.center.y-scrrenW*0.15,scrrenW*0.28,scrrenW*0.28)];

    imaged.image = [UIImageimageNamed:@"logo2"];

    [self.viewaddSubview:imaged];

    

    imaged.alpha =0;

    [UIViewanimateWithDuration:4.fanimations:^{

        imaged.alpha =1;

      imaged.Hidden =YES;

    }];

原创粉丝点击