Skip to content

krystalName/KNWaveView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KNWaveView

水波纹View 先上效果图

调用创建代码

@property(nonatomic, strong)KNWavesView *WavesView;

- (void)viewDidLoad {
    [super viewDidLoad];
    
    CGFloat waveWidth = self.view.bounds.size.width * 0.8f;
    
    _WavesView = [[KNWavesView alloc]initWithFrame:CGRectMake(0, 0, waveWidth, waveWidth)];
    _WavesView.center = CGPointMake(self.view.bounds.size.width/2.0f, self.view.bounds.size.width/2.0f);
    _WavesView.backgroundColor = [UIColor grayColor];
    
    [self.view addSubview:_WavesView];
}

About

水波纹View 简单创建方式

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published