// // ConnectErrorViewController.m // Ifish // // Created by imac on 15/10/26. // Copyright © 2015年 imac. All rights reserved. // #import "ConnectErrorViewController.h" @interface ConnectErrorViewController () @property(nonatomic,strong)UIWebView*webView; @end @implementation ConnectErrorViewController - (void)viewDidLoad { [super viewDidLoad]; [self addTitleViewWithTitle:@"问题自查"]; [self initView]; } -(void)initView{ self.webView=[[UIWebView alloc]initWithFrame:self.view.bounds]; NSString*filePath=[[NSBundle mainBundle]pathForResource:@"wifi_error" ofType:@"html"]; NSString*htmlString=[NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil]; [self.webView loadHTMLString:htmlString baseURL:[NSURL URLWithString:filePath]]; [self.view addSubview:self.webView]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } @end