我的调整显示任何效果。
betterW表示whatsapp标头
#import "headers/WAChatStorage.h"
#import "headers/WAMessage.h"
%hook WAChatStorage
- (void)revokeMessage:(id)arg1 {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:arg1
message:@"test"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}
-(void)revokeMessage:(id)arg1 fromWebClient:(_Bool)arg2 updatedStanzaID:(id)arg3
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:arg1
message:arg3
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}
%end
请告诉我为什么那不起作用....什么都没发生