Jump to content

2 posts in this topic

Recommended Posts

Posted (edited)

Hello everyone, I hope you're having a good night/day. I was wondering if someone would help me with something. I'm trying to call a method, while being hooked into another class.  I would like it to be called by a message being sent. So I would 

%hook CoreDataConversationManager

- (void) sendTextMessage:(id)command withRenderInstructionSet:(id)arg1 toConversation:(id)arg2 isSuggestedResponse:(BOOL)arg3 withMention:(id)arg4

command being the text the user would put. I asked a similar quesiton on r/jailbreakdevelopers and got this answer, 

-(void) someString:(NSString *)string { if ([string isEqualToString:@"someString"]) { [self someMethod]; } }

Maybe it just isn't clicking, but any help would be great, Thank you.

 

P.S. This is for kik by the way.

Updated by EricLegend

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines