本文主要是介绍iOS 动画 - 波纹 声波 水波,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
YSCAnimation
Github地址 : https://github.com/xiaochaofeiyu/YSCAnimation,对你有帮助的话帮我点颗星星哦!
ripple animation
1). singlelineripple --> corresponding class YSCRippleView
[_rippleView showWithRippleType:YSCRippleTypeLine]
2). ringRipple --> corresponding class YSCRippleView
[_rippleView showWithRippleType:YSCRippleTypeRing]
3). cicleRipple --> corresponding class YSCRippleView
[_rippleView showWithRippleType:YSCRippleTypeCircle]
4). mixedripple --> corresponding class YSCRippleView
[_rippleView showWithRippleType:YSCRippleTypeMixed]
wave animation
1). pusle --> corresponding class YSCWaveView
[_waveView showWaveViewWithType:YSCWaveTypePulse]
2). wave --> corresponding class YSCWaveView
[_waveView showWaveViewWithType:YSCWaveTypeVoice]
3). movedWave --> corresponding class YSCWaveView
[_waveView showWaveViewWithType:YSCWaveTypeMovedVoice]
mask animation
1). circleLoad --> corresponding class YSCCircleLoadAnimationView
YSCCircleLoadAnimationView *shapeView = [[YSCCircleLoadAnimationView alloc] initWithFrame:self.view.bounds];
UIImage *image = [UIImage imageNamed:@"tree.jpg"];
shapeView.loadingImage.image = image;
[self.view addSubview:shapeView];
[shapeView startLoading];
2). microphone wave --> corresponding class YSCMicrophoneWaveView
YSCMicrophoneWaveView *microphoneWaveView = [[YSCMicrophoneWaveView alloc] init];
[microphoneWaveView showMicrophoneWaveInParentView:self.view withFrame:self.view.bounds];
3). fanshaped wave --> corresponding class YSCFanShapedView
- (YSCFanShapedView *)fanshapedView
{if (!_fanshapedView) {self.fanshapedView = [[YSCFanShapedView alloc] init];_fanshapedView.frame = CGRectMake(0, 0, 300, 150);_fanshapedView.center = CGPointMake(self.view.bounds.size.width / 2.0, self.view.bounds.size.height / 2.0 - 100); }return _fanshapedView;
}//show
[self.fanshapedView
这篇关于iOS 动画 - 波纹 声波 水波的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!