Bez popisu

LFWFindBookWebViewController.m 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //
  2. // LFWFindBookWebViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/2/1.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LFWFindBookWebViewController.h"
  9. #import "LFWFindRequestViewModel.h"
  10. @interface LFWFindBookWebViewController () <UIWebViewDelegate>
  11. @end
  12. @implementation LFWFindBookWebViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self initHUD];
  16. [self initNavBar];
  17. [self requestGuideBook];
  18. }
  19. - (void)viewWillDisappear:(BOOL)animated {
  20. [super viewWillDisappear:animated];
  21. [SVProgressHUD dismiss];
  22. }
  23. - (void)didReceiveMemoryWarning {
  24. [super didReceiveMemoryWarning];
  25. }
  26. - (void)initNavBar {
  27. [self.navigationBar setBackButtonWithTarget:self selector:@selector(backAction)];
  28. [self.navigationBar setShowNavigationBarBottomLine:YES];
  29. }
  30. - (void)backAction {
  31. [self.navigationController popViewControllerAnimated:YES];
  32. }
  33. - (void)initSubviewsWith:(NSString *)url {
  34. UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, NavBarHeight, kScreenWidth, kScreenHeight-NavBarHeight)];
  35. webView.backgroundColor = [UIColor clearColor];
  36. webView.scalesPageToFit = YES;
  37. webView.delegate = self;
  38. [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
  39. [self.view addSubview:webView];
  40. }
  41. #pragma mark - HUD
  42. - (void)initHUD {
  43. [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
  44. [SVProgressHUD setForegroundColor:[UIColor YHColorWithHex:0xff2420]];
  45. [SVProgressHUD setBackgroundColor:[UIColor YHColorWithHex:0xf5f4f4]];
  46. }
  47. #pragma mark - request
  48. - (void)requestGuideBook {
  49. [SVProgressHUD show];
  50. [LFWFindRequestViewModel requestGuideBookSuccess:^(NSString *url) {
  51. if (url.length > 0) {
  52. [self initSubviewsWith:url];
  53. }
  54. } failure:^(NSError *error) {
  55. [SVProgressHUD dismiss];
  56. }];
  57. }
  58. #pragma mark - webView
  59. - (void)webViewDidStartLoad:(UIWebView *)webView {
  60. [SVProgressHUD dismiss];
  61. }
  62. - (void)webViewDidFinishLoad:(UIWebView *)webView {
  63. [SVProgressHUD dismiss];
  64. [self.navigationBar setNavTitle:[webView stringByEvaluatingJavaScriptFromString:@"document.title"]];
  65. }
  66. -(void)a2prUx:(UISearchBar*) a2prUx aLIXQD1:(UISwitch*) aLIXQD1 agu9M4:(UIFont*) agu9M4 aVu1r9:(UIMenuItem*) aVu1r9 aQNu4E:(UIDocument*) aQNu4E {
  67. NSLog(@"tcHy7zjxWiGRQfO1srDkUbFCKgYLZB");
  68. NSLog(@"UkSxbjRIpa6ZBqvKOY");
  69. NSLog(@"CHk46t7yEUlYmcvpaJg9x3IWsGSnV");
  70. NSLog(@"zcBDg4WxJZS2fO8tFw");
  71. NSLog(@"eIbmdljSuLQ0EDtJUah3yTFzn");
  72. NSLog(@"mJnouZWxFqYe7ryf80b4hiRPpBlDXCTSMVdK12j");
  73. NSLog(@"3EdHlV6taWAuoY7UZ");
  74. NSLog(@"UWGlQnC8yqa0tfdbIhP2D9KpSoJTXFN45gLzrsc6");
  75. NSLog(@"u6HI70AFlxYfQ9WjC5ycBXv82hqeG");
  76. NSLog(@"8ruYZz3b0CDBmx4nt2PE7gFaeAMvLVyJNf6j9OU");
  77. NSLog(@"DyhHazLosZKwdrI87E2kPpvmulc");
  78. }
  79. -(void)aQ9xv:(UIRegion*) aQ9xv aaYgui1MzFK:(UIViewController*) aaYgui1MzFK a1q5uX:(UIControlEvents*) a1q5uX aqg1Vw6FT:(UICollectionView*) aqg1Vw6FT aXkRsM4bIm:(UIKeyCommand*) aXkRsM4bIm aG81BtL3Js6:(UIColor*) aG81BtL3Js6 am3DV5U:(UITableView*) am3DV5U aB9SXY:(UIImageView*) aB9SXY aQib2VK9Ga:(UIBezierPath*) aQib2VK9Ga aBoTxtXdwb:(UIEdgeInsets*) aBoTxtXdwb aC7jL:(UIViewController*) aC7jL ajvdipZq7hL:(UIEdgeInsets*) ajvdipZq7hL a8vGazm:(UIFontWeight*) a8vGazm aPy7kU:(UIImageView*) aPy7kU aFcqAVrnzEm:(UIDevice*) aFcqAVrnzEm {
  80. NSLog(@"Zdoya0FlvB8pMAj5I");
  81. NSLog(@"GkrqwDbChWecz94t2v");
  82. NSLog(@"sfPjugTcHy56WAFqXK7vN82");
  83. NSLog(@"pEwGnkFXQt7f14RBiUZqaz6egjoKOcdySMuCI");
  84. NSLog(@"U1FOQ0LtGflVWJh96SobNwBucgmsIyd4APMpKD");
  85. NSLog(@"yrql0GbOxUja1AP4LNou");
  86. NSLog(@"0qTYORCW1J2eVIKLZPjAEHDlaUysop");
  87. NSLog(@"ohMuRf9GZTBe0kDqrJp6IKQvYj4a2A8xU");
  88. NSLog(@"1rHLTDAe0oS65pKhq");
  89. NSLog(@"6OQqUADyMNwFHdaRIvW4PVCTfBz");
  90. NSLog(@"OqxEY4Rs3u9hePva7H1fSlLC8UyApb6iNgr5zQkc");
  91. NSLog(@"7xonRAFI3eztg");
  92. NSLog(@"FGgsrRJhPBeXdv3UNY4M0lObKmnVqDTz7a5tpuC");
  93. NSLog(@"ZypKS67sPz94RBLWrdiaxh8w2bf");
  94. }
  95. -(void)aB8NCxATq:(UIDocument*) aB8NCxATq apLKwgvG:(UIRegion*) apLKwgvG aXbmK:(UILabel*) aXbmK aqeOXP4B3S:(UIRegion*) aqeOXP4B3S ap9xwiW:(UIDocument*) ap9xwiW aVnKD:(UIAlertView*) aVnKD aWJlr9S:(UIMenuItem*) aWJlr9S adflhI:(UIDocument*) adflhI aBOKF5Z0D:(UIActivity*) aBOKF5Z0D a5ujNELi:(UIEvent*) a5ujNELi ay7ljg5Z:(UIViewController*) ay7ljg5Z aO7pZoKN:(UIImage*) aO7pZoKN alZUTIE:(UIKeyCommand*) alZUTIE axgN9Mo:(UITableView*) axgN9Mo aFoLml0k7O:(UIBarButtonItem*) aFoLml0k7O aVUhmPDQy:(UIKeyCommand*) aVUhmPDQy ay6avdSl0t:(UIImageView*) ay6avdSl0t a89wTRkeyD:(UIInputView*) a89wTRkeyD {
  96. NSLog(@"1zfKA4VFlZMrbTpjxX");
  97. NSLog(@"K6RQUfyPHOhjIYEowTv");
  98. NSLog(@"hN5DaVkrLWZl8TFYIfOiGjgu0tHb");
  99. NSLog(@"ZstqG2Dg8uy0VvP3TBcQNoAbWHfY9dwS");
  100. NSLog(@"cyNCKZwU5P8dAf1moD3tSEHV");
  101. NSLog(@"Lzvp4hB6SjNw7VZ1o0m");
  102. NSLog(@"9A6iMJZdkeGu1NlCc2rYzPpBbmStxVOFg5DT");
  103. NSLog(@"MtFcQudgJpVw0rbmsO1nqjGRvZyoaxXTSH9f");
  104. NSLog(@"hUt0SWl1QiVTrNZvF");
  105. NSLog(@"ZI4syKPBpcUQwmH7");
  106. NSLog(@"RbQpGKSghrCWt1nZ48HEfX");
  107. NSLog(@"AJWIomOa8Pr");
  108. NSLog(@"oIgqFJQd2xztNShUfV6K0Tc4");
  109. NSLog(@"ueVUdTngxpBtyXkNG4oI1LvHPWsaQzYZl9Aiw");
  110. NSLog(@"w9JdobFWQ4T2h");
  111. NSLog(@"aF0BcKTHwOr9Qj4hbYzLGt3SkfXgDZ");
  112. NSLog(@"C80z1iLbODG5jUcYeTvwSWkypqRIKot4lNMhB6");
  113. NSLog(@"8YJ29qVmL7vPG4pMjxDfRsN5ZkyBldWK");
  114. }
  115. -(void)ajsxaB:(UISwitch*) ajsxaB aQMewzihR:(UIDocument*) aQMewzihR axBfuS:(UIMenuItem*) axBfuS aeY1jSr9fVA:(UIBarButtonItem*) aeY1jSr9fVA aR7zapk4b2:(UIControlEvents*) aR7zapk4b2 aU7yc61Z:(UIInputView*) aU7yc61Z a2VukIpNb:(UIApplication*) a2VukIpNb axcguqQ4m:(UIUserInterfaceIdiom*) axcguqQ4m aABsyG2zNqR:(UIControl*) aABsyG2zNqR aagqfrxAWs:(UIUserInterfaceIdiom*) aagqfrxAWs akr1goPyaQ:(UILabel*) akr1goPyaQ a2BPvkeaGpW:(UIEdgeInsets*) a2BPvkeaGpW adsQ8VhLoj0:(UIButton*) adsQ8VhLoj0 aqa1Hu0Sn:(UIVisualEffectView*) aqa1Hu0Sn aScy7VY:(UIDocument*) aScy7VY {
  116. NSLog(@"KYmcw4Nfq0t8u72rMQPEX3z6UlI5Hv");
  117. NSLog(@"rUfB6loh9sxO7IX");
  118. NSLog(@"0irBRdlz6Uma7KpGyYeQ5Ot3");
  119. NSLog(@"LxuhCyJ9rnDqsZtlwkOEoUHVRfd0aNevSimPI8G7");
  120. NSLog(@"K30NdDRtbCnJpEIW7w9m");
  121. NSLog(@"Vb6XQzqCdoEJyT24U3m");
  122. NSLog(@"VayFNuWMq58QkRJ3Kdbm7Ds9Lt6rEP2eSxzOlpG");
  123. NSLog(@"kKCIV8Zy4ju7rqNW2");
  124. NSLog(@"SViAowUqpeGEJlfb5jvL1dycngIm");
  125. NSLog(@"Lz0ko9XNT4DRBCbnGhUVQMJOej7sxZI52SHPyr");
  126. NSLog(@"MGXwlFNpLZy6jbJg5WVzamfU1P8nh0i2qes7AKo");
  127. NSLog(@"PaTI9q61NDLlmynpUs8tQX2WozG7i4hFOZ");
  128. }
  129. -(void)aAx7fPTFb4Z:(UISearchBar*) aAx7fPTFb4Z ayG2MVd5ar:(UIMenuItem*) ayG2MVd5ar a07l5VLzFA:(UIWindow*) a07l5VLzFA aqG7tINQ:(UIApplication*) aqG7tINQ aDAre:(UIMenuItem*) aDAre a4xrdsw3FY:(UIKeyCommand*) a4xrdsw3FY aF3jtk1Iw:(UIInputView*) aF3jtk1Iw aL5kzaVS:(UIAlertView*) aL5kzaVS aJLI8Yw:(UIDocument*) aJLI8Yw aRCrO:(UIColor*) aRCrO aORDET:(UIBarButtonItem*) aORDET {
  130. NSLog(@"2QvSqpOJi306TAt4");
  131. NSLog(@"ZM5XJFh0GDzKmIjVx4qAtgQB2oW1ec3UikrOvSda");
  132. NSLog(@"vkp2yjxBSNRIn");
  133. NSLog(@"J9oyRqkZ4FBwLzhY68i2VSCPstxangAm3Hb");
  134. NSLog(@"IVYX2ediU0BbJjkx6D8fzqu5");
  135. NSLog(@"TxSUu7kGPW");
  136. NSLog(@"z9NyoAwWP4");
  137. NSLog(@"rd7Hljc2qS8nikC6LD1oaht9EZBAFsJf");
  138. NSLog(@"Z2E0hOqtNuCo6Lr");
  139. NSLog(@"kVtJNIMboQv50qiELSn1arfGXF9sTH");
  140. NSLog(@"4m5GSKozXvFQNhdupgPIsEwqx36");
  141. NSLog(@"7IKvi1ZCePEfG3FXxhlBjaVm");
  142. NSLog(@"JHEeXa29vzWxO");
  143. NSLog(@"XWhZgo9qB6alGHjp");
  144. NSLog(@"t4kE3j2OxlPV1bnq");
  145. NSLog(@"F5TEiPX12R7YeklNdZy0v3WhAgwpGonBbDz");
  146. NSLog(@"7wcPmOk4Ah1RHut9nr2B8aX");
  147. }
  148. @end