Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Mabdelwanis/f75583d578a4b311cefbe2640ba154f3 to your computer and use it in GitHub Desktop.
Save Mabdelwanis/f75583d578a4b311cefbe2640ba154f3 to your computer and use it in GitHub Desktop.
Trying to get a sample tweak working in iOS 7
#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
%hook SBIconView
// Hooking an instance method with an argument.
- (void)setIsJittering:(BOOL)jittering {
[self setAlpha:(jittering ? 0.5 : 1.0)];
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment