
Untitled
By: a guest on
May 26th, 2012 | syntax:
None | size: 0.76 KB | hits: 14 | expires: Never
#import <SpringBoard/SpringBoard.h>
#import <SpringBoard/SBUIController.h>
#import <UIKit/UIKit.h>
%class SBUIController;
@interface CrazyStuff : NSObject
{
}
-(void)doCrazyStuff;
@end
@implementation CrazyStuff
-(void)doCrazyStuff
{
SBUIController *shared = (SBUIController *)[%c(SBUIController) sharedInstance];
UIWindow *theWindow = [shared window];
theWindow.transform.a += .01;
theWindow.transform.b += .01;
theWindow.transform.c += .01;
theWindow.transform.d += .01;
}
@end
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application
{
CrazyStuff* crazy = [[CrazyStuff alloc] init];
[NSTimer scheduledTimerWithTimeInterval:5 target:crazy selector:@selector(doCrazyStuff) userInfo: nil repeats:YES];
}
%end