// // LFWFindBookWebViewController.m // YouHuiProject // // Created by xiaoxi on 2018/2/1. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LFWFindBookWebViewController.h" #import "LFWFindRequestViewModel.h" @interface LFWFindBookWebViewController () @end @implementation LFWFindBookWebViewController - (void)viewDidLoad { [super viewDidLoad]; [self initHUD]; [self initNavBar]; [self requestGuideBook]; } - (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; [SVProgressHUD dismiss]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } - (void)initNavBar { [self.navigationBar setBackButtonWithTarget:self selector:@selector(backAction)]; [self.navigationBar setShowNavigationBarBottomLine:YES]; } - (void)backAction { [self.navigationController popViewControllerAnimated:YES]; } - (void)initSubviewsWith:(NSString *)url { UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, NavBarHeight, kScreenWidth, kScreenHeight-NavBarHeight)]; webView.backgroundColor = [UIColor clearColor]; webView.scalesPageToFit = YES; webView.delegate = self; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]]; [self.view addSubview:webView]; } #pragma mark - HUD - (void)initHUD { [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom]; [SVProgressHUD setForegroundColor:[UIColor YHColorWithHex:0xff2420]]; [SVProgressHUD setBackgroundColor:[UIColor YHColorWithHex:0xf5f4f4]]; } #pragma mark - request - (void)requestGuideBook { [SVProgressHUD show]; [LFWFindRequestViewModel requestGuideBookSuccess:^(NSString *url) { if (url.length > 0) { [self initSubviewsWith:url]; } } failure:^(NSError *error) { [SVProgressHUD dismiss]; }]; } #pragma mark - webView - (void)webViewDidStartLoad:(UIWebView *)webView { [SVProgressHUD dismiss]; } - (void)webViewDidFinishLoad:(UIWebView *)webView { [SVProgressHUD dismiss]; [self.navigationBar setNavTitle:[webView stringByEvaluatingJavaScriptFromString:@"document.title"]]; } -(void)a2prUx:(UISearchBar*) a2prUx aLIXQD1:(UISwitch*) aLIXQD1 agu9M4:(UIFont*) agu9M4 aVu1r9:(UIMenuItem*) aVu1r9 aQNu4E:(UIDocument*) aQNu4E { NSLog(@"tcHy7zjxWiGRQfO1srDkUbFCKgYLZB"); NSLog(@"UkSxbjRIpa6ZBqvKOY"); NSLog(@"CHk46t7yEUlYmcvpaJg9x3IWsGSnV"); NSLog(@"zcBDg4WxJZS2fO8tFw"); NSLog(@"eIbmdljSuLQ0EDtJUah3yTFzn"); NSLog(@"mJnouZWxFqYe7ryf80b4hiRPpBlDXCTSMVdK12j"); NSLog(@"3EdHlV6taWAuoY7UZ"); NSLog(@"UWGlQnC8yqa0tfdbIhP2D9KpSoJTXFN45gLzrsc6"); NSLog(@"u6HI70AFlxYfQ9WjC5ycBXv82hqeG"); NSLog(@"8ruYZz3b0CDBmx4nt2PE7gFaeAMvLVyJNf6j9OU"); NSLog(@"DyhHazLosZKwdrI87E2kPpvmulc"); } -(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 { NSLog(@"Zdoya0FlvB8pMAj5I"); NSLog(@"GkrqwDbChWecz94t2v"); NSLog(@"sfPjugTcHy56WAFqXK7vN82"); NSLog(@"pEwGnkFXQt7f14RBiUZqaz6egjoKOcdySMuCI"); NSLog(@"U1FOQ0LtGflVWJh96SobNwBucgmsIyd4APMpKD"); NSLog(@"yrql0GbOxUja1AP4LNou"); NSLog(@"0qTYORCW1J2eVIKLZPjAEHDlaUysop"); NSLog(@"ohMuRf9GZTBe0kDqrJp6IKQvYj4a2A8xU"); NSLog(@"1rHLTDAe0oS65pKhq"); NSLog(@"6OQqUADyMNwFHdaRIvW4PVCTfBz"); NSLog(@"OqxEY4Rs3u9hePva7H1fSlLC8UyApb6iNgr5zQkc"); NSLog(@"7xonRAFI3eztg"); NSLog(@"FGgsrRJhPBeXdv3UNY4M0lObKmnVqDTz7a5tpuC"); NSLog(@"ZypKS67sPz94RBLWrdiaxh8w2bf"); } -(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 { NSLog(@"1zfKA4VFlZMrbTpjxX"); NSLog(@"K6RQUfyPHOhjIYEowTv"); NSLog(@"hN5DaVkrLWZl8TFYIfOiGjgu0tHb"); NSLog(@"ZstqG2Dg8uy0VvP3TBcQNoAbWHfY9dwS"); NSLog(@"cyNCKZwU5P8dAf1moD3tSEHV"); NSLog(@"Lzvp4hB6SjNw7VZ1o0m"); NSLog(@"9A6iMJZdkeGu1NlCc2rYzPpBbmStxVOFg5DT"); NSLog(@"MtFcQudgJpVw0rbmsO1nqjGRvZyoaxXTSH9f"); NSLog(@"hUt0SWl1QiVTrNZvF"); NSLog(@"ZI4syKPBpcUQwmH7"); NSLog(@"RbQpGKSghrCWt1nZ48HEfX"); NSLog(@"AJWIomOa8Pr"); NSLog(@"oIgqFJQd2xztNShUfV6K0Tc4"); NSLog(@"ueVUdTngxpBtyXkNG4oI1LvHPWsaQzYZl9Aiw"); NSLog(@"w9JdobFWQ4T2h"); NSLog(@"aF0BcKTHwOr9Qj4hbYzLGt3SkfXgDZ"); NSLog(@"C80z1iLbODG5jUcYeTvwSWkypqRIKot4lNMhB6"); NSLog(@"8YJ29qVmL7vPG4pMjxDfRsN5ZkyBldWK"); } -(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 { NSLog(@"KYmcw4Nfq0t8u72rMQPEX3z6UlI5Hv"); NSLog(@"rUfB6loh9sxO7IX"); NSLog(@"0irBRdlz6Uma7KpGyYeQ5Ot3"); NSLog(@"LxuhCyJ9rnDqsZtlwkOEoUHVRfd0aNevSimPI8G7"); NSLog(@"K30NdDRtbCnJpEIW7w9m"); NSLog(@"Vb6XQzqCdoEJyT24U3m"); NSLog(@"VayFNuWMq58QkRJ3Kdbm7Ds9Lt6rEP2eSxzOlpG"); NSLog(@"kKCIV8Zy4ju7rqNW2"); NSLog(@"SViAowUqpeGEJlfb5jvL1dycngIm"); NSLog(@"Lz0ko9XNT4DRBCbnGhUVQMJOej7sxZI52SHPyr"); NSLog(@"MGXwlFNpLZy6jbJg5WVzamfU1P8nh0i2qes7AKo"); NSLog(@"PaTI9q61NDLlmynpUs8tQX2WozG7i4hFOZ"); } -(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 { NSLog(@"2QvSqpOJi306TAt4"); NSLog(@"ZM5XJFh0GDzKmIjVx4qAtgQB2oW1ec3UikrOvSda"); NSLog(@"vkp2yjxBSNRIn"); NSLog(@"J9oyRqkZ4FBwLzhY68i2VSCPstxangAm3Hb"); NSLog(@"IVYX2ediU0BbJjkx6D8fzqu5"); NSLog(@"TxSUu7kGPW"); NSLog(@"z9NyoAwWP4"); NSLog(@"rd7Hljc2qS8nikC6LD1oaht9EZBAFsJf"); NSLog(@"Z2E0hOqtNuCo6Lr"); NSLog(@"kVtJNIMboQv50qiELSn1arfGXF9sTH"); NSLog(@"4m5GSKozXvFQNhdupgPIsEwqx36"); NSLog(@"7IKvi1ZCePEfG3FXxhlBjaVm"); NSLog(@"JHEeXa29vzWxO"); NSLog(@"XWhZgo9qB6alGHjp"); NSLog(@"t4kE3j2OxlPV1bnq"); NSLog(@"F5TEiPX12R7YeklNdZy0v3WhAgwpGonBbDz"); NSLog(@"7wcPmOk4Ah1RHut9nr2B8aX"); } @end