Created
December 29, 2013 23:54
-
-
Save hetelek/8176171 to your computer and use it in GitHub Desktop.
A tweak (for iOS 7) that allows you to respring your device by swiping the homescreen card up in the app switcher.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <substrate.h> | |
%hook SBAppSliderController | |
- (BOOL)sliderScroller:(id)scrollingViewController isIndexRemovable:(unsigned int)index | |
{ | |
return YES; | |
} | |
- (void)sliderScroller:(id)scrollingViewController itemWantsToBeRemoved:(unsigned int)index | |
{ | |
// if it's the homescreen, respring | |
if (index == 0) | |
system("killall -9 SpringBoard"); | |
else | |
%orig; | |
} | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment