瀏覽代碼

Version 1.2

master
Gil Shahar 6 年之前
父節點
當前提交
0f36b6e585
No account linked to committer's email address
共有 1 個文件被更改,包括 7 次插入24 次删除
  1. +7
    -24
      Tweak.xm

+ 7
- 24
Tweak.xm 查看文件

@@ -1,29 +1,12 @@
@interface OPASearchViewController
@interface OPAVoicePlateController
-(void)didTapOnGlifView;
@end

@interface OPAViewController
@property (nonatomic, assign) OPASearchViewController *searchViewController;
@end

@interface OPAZeroStateViewController
-(void)openMicForVoiceQuery;
@end

%hook OPAViewController
-(void)viewDidLoad{
%orig;
[[NSNotificationCenter defaultCenter] addObserver:self.searchViewController selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil];
[self.searchViewController didTapOnGlifView];
}
%end



%hook OPAZeroStateViewController
-(void)viewDidLoad{
%orig;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openMicForVoiceQuery) name:UIApplicationDidBecomeActiveNotification object:nil];
[self openMicForVoiceQuery];
%hook OPAVoicePlateController
-(OPAVoicePlateController *)init{
OPAVoicePlateController *origself = %orig;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil];
[self didTapOnGlifView];
return origself;
}
%end

Loading…
取消
儲存