标签:
一,效果图。
二,工程图。
三,代码。
ViewController.h
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
ViewController.m
#import "ViewController.h"
//加入头文件
#import "VWWWaterView.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
VWWWaterView *waterView = [[VWWWaterView alloc]initWithFrame:self.view.bounds];
[self.view addSubview:waterView];
}
标签:
原文地址:http://www.cnblogs.com/yang-guang-girl/p/5555105.html