UIView*view = [[UIViewalloc]init];
view.frame = CGRectMake(13.0,231.0,350.0,109.0);
view.layer.backgroundColor= [UIColorcolorWithRed:255/255.0green:255/255.0blue:255/255.0alpha:1.0].CGColor;
view.layer.cornerRadius = 15;
view.layer.shadowColor= [UIColorcolorWithRed:0/255.0green:0/255.0blue:0/255.0alpha:0.1].CGColor;
view.layer.shadowOffset=CGSizeMake(0,0);
view.layer.shadowOpacity = 1;
view.layer.shadowRadius = 10;
[self.containerViewaddSubview:view];
网友评论