UIView - CAGradientLayer

CAGradientLayer *layer = [[CAGradientLayer alloc] init]; layer.frame = self.bounds; //漸變轉折點 layer.locations = @[@0, @0.25, @0.75, @1]; //漸變顏色,個數與locations一致 layer.colors = [NSArray
相關文章
相關標籤/搜索