You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
537B

  1. @interface OPAVoicePlateController
  2. -(void)didTapOnGlifView;
  3. @end
  4. %hook OPAVoicePlateController
  5. -(OPAVoicePlateController *)init{
  6. OPAVoicePlateController *origself = %orig;
  7. dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC));
  8. dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
  9. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil];
  10. [self didTapOnGlifView];
  11. });
  12. return origself;
  13. }
  14. %end