加载webView

来源:互联网 发布:数据新闻手册中文版 编辑:程序博客网 时间:2024/06/06 02:22

  

  UIWebView *web = [[UIWebViewalloc] initWithFrame:CGRectMake(0,64, kScreenWidth,kScreenHeight - 64)];

    NSURL *url = [[NSURLalloc] initWithString:[NSStringstringWithFormat:@"http://%@",self.urlStr]];

    [web loadRequest:[NSURLRequestrequestWithURL:url]];

    [self.viewaddSubview:web];


0 0
原创粉丝点击