%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不起作用,,,,求更正。