do you know how can I add a Respring button in Setting>My tweak?
I know the code must added in the PreferenceBundle folder, but I don't know the code :D
Example: https://i.sstatic.net/yKmuK.jpg
Thanks in advance!
P.S: I know how to use Theos (if this can be useful)
For theos just do this:
In the settings bundle open "resources" and then the .plist file of your tweak (maybe it will be "my tweak settings.plist" and add a button with this value:
cell: PSButtonCell
label: Respring
action: respring
Now go back in your settings bundle and open the file called "my tweak settings.mm" and, in the @implementation part, add the method for the respiring action:
-(void)respring {
[(SpringBoard *)[UIApplication sharedApplication] _relaunchSpringBoardNow];
}
Non you will have a PSButtonCell that will respiring your device.