error: Use of undeclared identifier 'UIAlertView' error: Unknown type name 'UIAlertView' Putty in text
Makefile
include theos/makefiles/common.mk
TWEAK_NAME = fragger
fragger_FILES = Tweak.xm
fragger_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
Tweak.xm
//the hack//
%hook LevelLayer
-(int) grenades {
return 10000;
}
-(void) setGrenades:(int)fp8 {
fp8=10000;
%orig(fp8);
}
%end
%hook Configuration
-(void) setUnlimitedGrenades: (BOOL)fp8 {
fp8=true;
%orig(fp8);
}
%end
%hook AppDelegate
-(void)applicationDidBecomeActive:(id)argument {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"This is the Title" message:@"This is the Message" delegate:nil cancelButtonTitle:@"This is the Button Text" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end