首页 > Web开发 > 详细

UI4_UIWebView

时间:2015-07-11 16:43:29      阅读:267      评论:0      收藏:0      [点我收藏+]
//
//  ViewController.m
//  UI4_UIWebView
//
//  Created by zhangxueming on 15/7/7.
//  Copyright (c) 2015年 zhangxueming. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
    //创建网络请求
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    //加载webView
    [webView loadRequest:request];
    [self.view addSubview:webView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

 

UI4_UIWebView

原文:http://www.cnblogs.com/0515offer/p/4638832.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!