Jump to content

Can't kill app?


Go to solution Solved by K3NNNY,

8 posts in this topic

Recommended Posts

Posted

Hello everyone, I was wondering if anyone could help me solve this problem. I'm tryint to make a button to kill kik when the button is tapped, but since ios 9 the button isn't working. I've looked around and found nothing. Hopfully someone can help. Here is the code. 

[mutableNewArr addObject:[[[%c(SettingsOptionButton) alloc] initWithTitle:@"Click to close Kik and apply settings" iconImage:restart executeOnTap:^(void){ system("killall -9 Kik"); }] autorelease]];

Thanks for the help!

Posted

Where the hook to the appdelegate?

%hook AppDelegate
-(void)applicationDidBecomeActive:(id)argument {

[mutableNewArr addObject:[[[%c(SettingsOptionButton) alloc] initWithTitle:@"Click to close Kik and apply settings" iconImage:restart executeOnTap:^(void){ system("killall -9 Kik"); }] autorelease]];
}
%end
Posted

Where the hook to the appdelegate?

%hook AppDelegate
-(void)applicationDidBecomeActive:(id)argument {

[mutableNewArr addObject:[[[%c(SettingsOptionButton) alloc] initWithTitle:@"Click to close Kik and apply settings" iconImage:restart executeOnTap:^(void){ system("killall -9 Kik"); }] autorelease]];
}
%end

It seems to be hooked farther down for the greeting message and other notification alerts.

Posted

It seems to be hooked farther down for the greeting message and other notification alerts.

 

is it to respring?

Posted (edited)

is it to respring?

No, it's just for the first time they open kik with the tweak installed, they will see a UIAlert saying thank you for installing.

Updated by EricLegend
Posted

Perfect thanks, I'll look in the morning. Thank you for the help.

No problem, click on "solved problem" so it could help with others

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