UserPrivacyProlicyViewController.m 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // UserPrivacyProlicyViewController.m
  3. // XenonSDK
  4. //
  5. // Created by fq on 2020/12/12.
  6. // Copyright © 2020 SAGESSE. All rights reserved.
  7. //
  8. #import "UserPrivacyProlicyViewController.h"
  9. #import <objc/message.h>
  10. #import "XenonSDK.h"
  11. @interface UserPrivacyProlicyViewController ()
  12. @property (unsafe_unretained, nonatomic) IBOutlet UIWebView *webView;
  13. @end
  14. @implementation UserPrivacyProlicyViewController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. self.view.backgroundColor = [UIColor whiteColor];
  18. //self.webView = (UIWebView *)[[NSClassFromString(fqsd(@"iB0AAM3C0eDe0+fk9wA=")) alloc] initWithFrame:self.view.bounds];
  19. if (self.webView == nil) {
  20. return;
  21. }
  22. self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
  23. self.webView.backgroundColor = UIColor.clearColor;
  24. [self.webView setValue:self forKey:@"delegate"];
  25. [self.view addSubview:self.webView];
  26. NSURL* url =[NSURL URLWithString:@"http://www.funcheergame.com/html/privacy_prolicy.html"];
  27. // -[UIWebView loadRequest:]
  28. ((void(*)(id,SEL,id))objc_msgSend)(self.webView, NSSelectorFromString(fqsd(@"rEsAAMHQ0pnAxLe7qr7L0AI=")), [NSURLRequest requestWithURL:url]);
  29. }
  30. //- (BOOL)webView:(id)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(NSInteger)navigationType {
  31. //
  32. // // -[UIApplication openURL:]
  33. // ((void(*)(id,SEL,id))objc_msgSend)(UIApplication.sharedApplication, NSSelectorFromString(fqsd(@"p2cAAMrAyrKwq5rIAA==")), request.URL);
  34. // return NO;
  35. //}
  36. - (void)viewWillAppear:(BOOL)animated {
  37. [super viewWillAppear:animated];
  38. }
  39. - (void)viewWillDisappear:(BOOL)animated {
  40. [super viewWillDisappear:animated];
  41. }
  42. - (BOOL)prefersUnifiedBackground {
  43. return NO;
  44. }
  45. - (void)closeViewAction:(id)sender {
  46. [self dismissViewControllerAnimated:YES completion:nil];
  47. }
  48. @end