ios 圆角和阴影共存效果

self.backgroundColor = kColor_white;

    self.layer.cornerRadius= 10 ;

    self.layer.shadowOpacity = 0.2;

    self.layer.shadowColor = [UIColor blackColor].CGColor;

    self.clipsToBounds = true;

你可能感兴趣的:(ios 圆角和阴影共存效果)