这个tweak为什么不起作用?

虽然可以编译并安装成功,但是不起作用? 求教大神。
#include <UIKit/UIKit.h>

@interface SBApplicationIcon

  • (void) launchFormLocation:(int)arg;
  • (id) displayName;
    @end

%hook SBApplicationIcon

  • (void) launchFormLocation:(int)location
    {
    NSString *appName = [self displayName];
    NSString *message = [NSString stringWithFormat:@“Application launched:%@”, appName];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:nil
    cancelButtonTitle:@“Yes” otherButtonTitles:@“No”, nil];
    [alert show];
    [alert release];
    }

  • (void) launch
    {
    NSLog(@“Fuccck”);
    }
    %end

试试这样写:

%hook SBApplicationIcon

-(void)applicationDidBecomeActive:(id)arg {

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“Test Title”
message:@“Test Message”
delegate:self
cancelButtonTitle:@“Yes”
otherButtonTitles:@“No”, nil];
[alert show];
[alert release];
%orig();
}

%end