Created
September 11, 2008 23:07
-
-
Save chendo/10335 to your computer and use it in GitHub Desktop.
or maybe not. ignore this
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
/* Adding icon to status bar in 1.x */ | |
NSString *pathToDefault = [NSString stringWithFormat:@"%@/Default.png", [[NSBundle mainBundle] bundlePath]]; | |
NSURL *urlToDefault = [NSURL fileURLWithPath:pathToDefault]; | |
CGImageDestinationRef dest = CGImageDestinationCreateWithURL((CFURLRef)urlToDefault, CFSTR("public.png")/*kUTTypePNG*/, 1, NULL); | |
CGImageDestinationAddImage(dest, defaultPNG, NULL); | |
CGImageDestinationFinalize(dest); | |
CFRelease(defaultPNG); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment