iOS 控件

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

2017-06-03  本文已影响9人  wodeph

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

imaged.image= [UIImage    imageNamed:@"logo2"];

[self.view  addSubview:imaged];

imaged.alpha=0;

[UIView      animateWithDuration:4.f   animations:^{

imaged.alpha=1;

imaged.Hidden=YES;

}];

注:不喜勿喷!!!

上一篇下一篇

猜你喜欢

热点阅读