• IOS UIView圆角,阴影,边框,渐增光泽

    圆角sampleView.layer.cornerRadius=2.5;//圓角的弧度sampleView.layer.masksToBounds=YES;阴影sampleView.layer.shadowColor=[[UIColorblackColor]CGColor];sampleView.layer.shadowOffset=CGSizeMake(3.0f,3.0f);//[水平偏移,垂直