#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
-#import <UIKit/UIKit.h>
+
+#import <UIKit/UIKeyboard.h>
+#import <UIKit/UIImage.h>
extern "C" {
#include <mach-o/nlist.h>
}
+extern "C" NSData *UIImagePNGRepresentation(UIImage *image);
+
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *key = [keys objectAtIndex:i];
CGImageRef ref = (CGImageRef) [*images objectForKey:key];
+ CFShow(ref);
UIImage *image = [UIImage imageWithCGImage:ref];
NSData *data = UIImagePNGRepresentation(image);
[data writeToFile:[NSString stringWithFormat:@"%@", key] atomically:YES];