瀏覽代碼

Merge pull request #1 from viggou/master

A less hacky way to hide the CC grabber
master
exoticswingset 4 年之前
父節點
當前提交
5446a5890c
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 9 行新增4 行删除
  1. +9
    -4
      Tweak.x

+ 9
- 4
Tweak.x 查看文件

@@ -1,3 +1,7 @@
@interface CSTeachableMomentsContainerView { }
@property (nonatomic,retain) UIView * controlCenterGrabberView;
@end

%hook UIStatusBar_Modern
-(void)setAlpha:(CGFloat)arg1 {
%orig(0.0); // makes status bar transparent on lock screen
@@ -5,8 +9,9 @@

%end

%hook SBDashBoardTeachableMomentsContainerView
-(void)_addControlCenterTutors {
// Nothing here to prevent the cc grabber from showing
%hook CSTeachableMomentsContainerView
- (void)layoutSubviews {
[self.controlCenterGrabberView setHidden:YES];
return %orig;
}
%end
%end

Loading…
取消
儲存