Initial commit
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ShopCertificationHtmlController.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/8/17.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShopCertificationHtmlController.h"
|
||||
|
||||
@interface ShopCertificationHtmlController ()<UIWebViewDelegate>
|
||||
@property(nonatomic,strong)UIWebView*myWebView;
|
||||
@end
|
||||
|
||||
@implementation ShopCertificationHtmlController
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
self.title = @"爱鱼奇商户入驻协议";
|
||||
self.view.backgroundColor = TABLE_HEADER_COLOR;
|
||||
|
||||
[self initWebView];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning {
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
-(void)initWebView{
|
||||
self.myWebView=[[UIWebView alloc]initWithFrame:self.view.bounds];
|
||||
|
||||
NSString*filepath=[[NSBundle mainBundle]pathForResource:@"shopCertification" ofType:@"html"];
|
||||
NSString*html=[NSString stringWithContentsOfFile:filepath encoding:NSUTF8StringEncoding error:nil];
|
||||
|
||||
[self.myWebView loadHTMLString:html baseURL:[NSURL URLWithString:filepath]];
|
||||
|
||||
[self.view addSubview:self.myWebView];
|
||||
}
|
||||
-(void)webViewDidStartLoad:(UIWebView *)webView{
|
||||
|
||||
}
|
||||
-(void)webViewDidFinishLoad:(UIWebView *)webView{
|
||||
|
||||
}
|
||||
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
|
||||
|
||||
|
||||
[self.view makeToast:@"加载失败"];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user