圆角sampleView.layer.cornerRadius = 2.5; // 圓角的弧度sampleView.layer.masksToBounds = YES;阴影sampleView.layer.shadowColor = [[UIColor blackColor] CGColor];sampleView.layer.shadowOffset = CGSizeMake(3.0f, 3.0f); // [水平偏移, 垂直偏移]sampleView.layer.shadowOpacity = 0.5f; // 0.0 ~ 1.0 的值sampleView.layer.shadowRadius = 10.0f; // 陰影發散的程度边框sampleView.layer.borderWidth = 1;sampleView.layer.borderColor = [[UIColor blackColor] CGColor];渐增光泽CAGradientLayer *gradient =