//
//  WebViewController.m
//  iOSJSBridgeDemo
//
//  Created by 罗坚(EX-LUOJIAN004) on 2018/5/2.
//  Copyright © 2018年 罗坚(EX-LUOJIAN004). All rights reserved.
//

#import "WebViewController.h"
#import "ACBridgeWebView.h"
#import "UINavigationController+ACWebPlus.h"

@interface WebViewController ()

@end

@implementation WebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"UIWebView";
    self.view.backgroundColor = [UIColor whiteColor];
    
    ACBridgeWebView *webView = [[ACBridgeWebView alloc] initWithFrame:self.view.bounds];
    webView.vc = self;
    [self.view addSubview:webView];
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[[NSBundle mainBundle] pathForResource:@"assets/web/index.html" ofType:nil]]]];
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    
    [self.navigationController setDefaultAppearance];
}

@end
