美文网首页
菊花加载

菊花加载

作者: 宝物 | 来源:发表于2016-05-30 10:43 被阅读0次
    #import "WebView.h"
    
    #import "SVProgressHUD.h"
    
    @interface WebView ()<UIWebViewDelegate>
    
    
    
    @end
    
    @implementation WebView
    
    - (void)viewDidLoad {
        [super viewDidLoad];
        // Do any additional setup after loading the view.
        
        self.view.backgroundColor = [UIColor whiteColor];
        
        UIWebView * webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
        
        webView.delegate = self;
        [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlStr]]];
        
        [self.view addSubview:webView];
    }
    
    
    -(void)webViewDidStartLoad:(UIWebView *)webView{
        [SVProgressHUD showWithStatus:@"正在加载"];
    }
    -(void)webViewDidFinishLoad:(UIWebView *)webView{
        [SVProgressHUD dismiss];
    }
    - (void)didReceiveMemoryWarning {
        [super didReceiveMemoryWarning];
    }
    

    相关文章

      网友评论

          本文标题:菊花加载

          本文链接:https://www.haomeiwen.com/subject/esoqdttx.html