Created
July 12, 2013 04:39
-
-
Save jontelang/5981510 to your computer and use it in GitHub Desktop.
asd
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 characters
UIImage* i = _UICreateScreenUIImage(); | |
UIImageView* bg = [[UIImageView alloc] initWithImage:i]; | |
static NSArray *filters; | |
if (!filters) { | |
CAFilter *filter = [CAFilter filterWithType:@"gaussianBlur"]; | |
[filter setValue:[NSNumber numberWithFloat:10] forKey:@"inputRadius"]; | |
[filter setValue:[NSNumber numberWithBool:YES] forKey:@"inputHardEdges"]; | |
filters = [[NSArray alloc] initWithObjects:filter, nil]; | |
} | |
CALayer *layer = bg.layer; | |
layer.filters = filters; | |
layer.shouldRasterize = YES; | |
[i release]; | |
[ilw setBackgroundImage:bg]; | |
[bg release]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment