Tweak Hook RSA addPublicKey不成功,求更正。

%hook RSA

  • (SecKeyRef)addPublicKey:(NSString *)key{

UIAlertView *alert1 = [[UIAlertView alloc] initWithTitle:@“key” message:[NSString stringWithFormat:@“key=%@”,key] delegate:self cancelButtonTitle:@“OK” otherButtonTitles:nil,nil];
[alert1 show];
return %orig;
}
%end

各路大神,。我这样写hook不起作用,,,,求更正。

发帖提问的默认模板放在那里是有作用的,就像你脖子上的那个东西一样。

很可惜在这里两个东西都没发挥任何作用呢