Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %hook UIStatusBarWindow
- %new
- - (void)noty_three {
- if (enabled_three) {
- if ([notyID_three isEqualToString: @"com.apple.MobileSMS"])
- [[objc_getClass("JBBulletinManager") sharedInstance] showBulletinWithTitle:notyTitle_three message:notyMessage_three bundleID:notyID_three soundPath:@"System/Library/PrivateFrameworks/ToneLibrary.framework/AlertTones/Modern/Note.m4r"];
- else
- [[objc_getClass("JBBulletinManager") sharedInstance] showBulletinWithTitle:notyTitle_three message:notyMessage_three bundleID:notyID_three];
- }
- }
- - (instancetype)initWithFrame:(CGRect)frame {
- self = %orig;
- UITapGestureRecognizer *Recognizer_three = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(noty_three)];
- Recognizer_three.numberOfTapsRequired = notyTaps_three;
- [self addGestureRecognizer:Recognizer_three];
- return self;
- }
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement