-/*MSHook(void, SBSlidingAlertDisplay$updateDesktopImage$, SBSlidingAlertDisplay *self, SEL sel, UIImage *image) {
- NSString *text(@"\"Sad iPhone\" by Geoff Stearns");
- UIView *&_backgroundView(MSHookIvar<UIView *>(self, "_backgroundView"));
- if (_backgroundView != nil)
- text = nil;
- _SBSlidingAlertDisplay$updateDesktopImage$(self, sel, image);
- if (text != nil) {
- UIFont *font([UIFont systemFontOfSize:12]);
- CGRect rect([self frame]);
- CGSize size([text sizeWithFont:font]);
- rect.origin.y = 385 - 3 - 14;//size.height;
- rect.size.height = size.height;
-
- UITextView *view([[UITextView alloc] initWithFrame:rect]);
- [view setTextAlignment:UITextAlignmentCenter];
- [view setMarginTop:0];
- [view setFont:font];
- [view setText:text];
- [view setTextColor:[UIColor grayColor]];
- [view setBackgroundColor:[UIColor clearColor]];
-
- [self insertSubview:view aboveSubview:_backgroundView];
- }
-}*/
-