Tweak.x 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #import <UIKit/UIKit.h>
  2. @interface MHFamilyMainViewController: UIViewController
  3. @end
  4. @interface MHSplashViewController: UIViewController
  5. - (void)jumpAd;
  6. @end
  7. %hook MHFamilyMainViewController
  8. - (void)viewDidLoad {
  9. %log;
  10. %orig;
  11. //UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示" message:@"测试米家去广告插件" preferredStyle:UIAlertControllerStyleAlert];
  12. //UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  13. //}];
  14. //[alertController addAction:okAction];
  15. //[self presentViewController:alertController animated:YES completion:nil];
  16. }
  17. - (void)refreshFocusAdData{
  18. %log;
  19. }
  20. %end
  21. %hook MHTabBarViewController
  22. - (void)p_setupBrandZoneTab:(id)arg1 {
  23. %log;
  24. }
  25. %end
  26. %hook MHSplashViewController
  27. - (void)viewDidLoad {
  28. [self jumpAd];
  29. }
  30. %end
  31. %hook MHSplashADProcessor
  32. + (id)shared {
  33. return nil;
  34. }
  35. - (void)displaySplashAd {
  36. }
  37. - (id)init {
  38. return nil;
  39. }
  40. - (id)loadSplashAdCacheDataAdList {
  41. return nil;
  42. }
  43. - (id)loadSplashAdCacheData {
  44. return nil;
  45. }
  46. %end
  47. %hook AppDelegate
  48. - (void)showUserGuideOrSplashAD {
  49. %log;
  50. }
  51. %end