//点击截图按钮事件
-(void)save{
UIGraphicsBeginImageContextWithOptions(_customView.bounds.size, YES, 0);
CGContextRef context=UIGraphicsGetCurrentContext();
[_customView.layer renderInContext:context];
UIImage *image=UIGraphicsGetImageFromCurrentImageContext();
UIImageView *_imgView=[[UIImageView alloc]initWithFrame:CGRectMake(30, 230, 100, 100)];
_imgView.backgroundColor=[UIColor yellowColor];
_imgView.image=image;
[self.view addSubview:_imgView];
[_imgView release];
UIGraphicsEndImageContext();
}