Created
April 15, 2013 16:24
-
-
Save maojj/5389322 to your computer and use it in GitHub Desktop.
inner shadow
This file contains 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 characters
gradient.frame = CGRectMake(0, 0, 100, 100); | |
gradient.startPoint = CGPointMake(1.0, 1.0); | |
gradient.endPoint = CGPointMake(1.0, 0); | |
gradient.colors = [NSArrayarrayWithObjects:(id)[[UIColorblackColor] CGColor], (id)[[UIColorclearColor] CGColor], nil]; | |
[targenView.layerinsertSublayer:gradient atIndex:0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment