iOS内置波浪动画:UIView KYWaterWaveView
dy223
10年前
实现波浪正弦动画并带有小鱼跳跃溅起水花。A view with water wave animation inside.
</div> Usage
You can use code or xib to create; Then set the properties;
<pre>@property (nonatomic, assign) CGFloat waveSpeed; // Default as 6 @property (nonatomic, assign) CGFloat waveAmplitude; // Default as 6</pre>Most importantly, do not forget to call[waterView wave];
When you need to stop the wave,just call[waterView stop];