Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "control.h"
- #import <QuartzCore/QuartzCore.h>
- %hook SBVolumeHardwareButtonActions
- NSDate *start = [NSDate date];
- -(void)volumeIncreasePressDown
- {
- }
- NSTimeInterval timeInterval = [start timeIntervalSinceNow];
- -(void)volumeIncreasePressUp
- {
- [[%c(SBMediaController) sharedInstance] changeTrack: 1];
- }
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement