Last active
December 19, 2015 03:29
-
-
Save PrideChung/5890314 to your computer and use it in GitHub Desktop.
Revisions
-
PrideChung revised this gist
Jun 29, 2013 . 2 changed files with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = cell.backgroundView.frame; UIColor* lightColor = [[UIColor blackColor] colorWithAlphaComponent:0.0]; UIColor* darkColor = [[UIColor blackColor] colorWithAlphaComponent:0.3]; gradient.colors = @[(id)darkColor.CGColor, (id)lightColor.CGColor]; gradient.locations = @[@0.0, @1.0]; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ -
PrideChung created this gist
Jun 29, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = cell.backgroundView.frame; UIColor* lightColor = [[UIColor blackColor] colorWithAlphaComponent:0.0]; UIColor* darkColor = [[UIColor blackColor] colorWithAlphaComponent:0.3]; gradient.colors = @[(id)darkColor.CGColor, (id)lightColor.CGColor]; gradient.locations = @[@0.0, @1.0];